diff --git a/templates/index.html b/templates/index.html index 464ca2e..b163517 100644 --- a/templates/index.html +++ b/templates/index.html @@ -435,6 +435,13 @@ document.querySelector('.header').classList.add('dark-theme'); $('#folder-tree').addClass('jstree-default-dark'); } + + // Делегирование событий для кнопок "Заметка" + $('#installs-list').on('click', '.action-buttons button:nth-child(2)', function () { + const installId = $(this).closest('.install-item').data('id'); + const install = allInstalls.find(i => i.id === installId); + openNoteModal(installId, install?.note || ''); + }); }); function toggleTheme() { @@ -645,7 +652,7 @@