From 0a0410815ee3130fc73bf9f9cab19f287f7a23b3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rn=20Friedrich=20Dreyer?= <jfd@butonic.de> Date: Sun, 8 Sep 2013 10:11:35 +0200 Subject: [PATCH] close and destroy dialog on ESC --- core/js/oc-dialogs.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/core/js/oc-dialogs.js b/core/js/oc-dialogs.js index 13348b455d..7c4483cefc 100644 --- a/core/js/oc-dialogs.js +++ b/core/js/oc-dialogs.js @@ -387,7 +387,10 @@ var OCdialogs = { closeOnEscape: true, modal: true, buttons: buttonlist, - closeButton: null + closeButton: null, + close: function(event, ui) { + $(this).ocdialog('destroy').remove(); + } }); $(dialog_id).css('height','auto'); -- GitLab