From 82c64db67b297c8970efdd85fa03d7d761ba7333 Mon Sep 17 00:00:00 2001 From: Damyan Ivanov Date: Sun, 6 Mar 2022 20:12:09 +0000 Subject: [PATCH] destroy both dialogs on close works on Esc or Cancel --- public/javascripts/lsl.js | 6 ++++++ 1 file changed, 6 insertions(+) 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', -- 2.39.5