From: Damyan Ivanov Date: Sun, 6 Mar 2022 20:12:09 +0000 (+0000) Subject: destroy both dialogs on close X-Git-Url: https://git.ktnx.net/?a=commitdiff_plain;h=82c64db67b297c8970efdd85fa03d7d761ba7333;p=lsl.git destroy both dialogs on close works on Esc or Cancel --- diff --git a/public/javascripts/lsl.js b/public/javascripts/lsl.js index 92e0897..942f249 100644 --- a/public/javascripts/lsl.js +++ b/public/javascripts/lsl.js @@ -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',