]> git.ktnx.net Git - lsl.git/commitdiff
destroy both dialogs on close
authorDamyan Ivanov <dmn@debian.org>
Sun, 6 Mar 2022 20:12:09 +0000 (20:12 +0000)
committerDamyan Ivanov <dmn@debian.org>
Sun, 6 Mar 2022 20:12:09 +0000 (20:12 +0000)
works on Esc or Cancel

public/javascripts/lsl.js

index 92e089763fb138fd5e1528ea56d1f3af90bf75dd..942f2498f011a8ade58f9dcee7204604662196cd 100644 (file)
@@ -110,6 +110,9 @@ function edit_list() {
         modal: true,
         title: 'Edit list',
         width: 'max-content',
+        close: (ev) => {
+            $(ev.target).dialog('destroy');
+        },
         buttons: [
             {
                 class: 'btn-delete',
@@ -336,6 +339,9 @@ function edit_list_item(li) {
         modal: true,
         title: 'Edit item',
         width: 'max-content',
+        close: (ev) => {
+            $(ev.target).dialog('destroy');
+        },
         buttons: [
             {
                 class: 'btn-delete',