diff options
author | Jörn Friedrich Dreyer <jfd@butonic.de> | 2013-09-08 10:11:35 +0200 |
---|---|---|
committer | Jörn Friedrich Dreyer <jfd@butonic.de> | 2013-09-08 10:11:35 +0200 |
commit | 0a0410815ee3130fc73bf9f9cab19f287f7a23b3 (patch) | |
tree | 8b1ed166fabd8c6b7a8c6ac8ed054d18486df58f /core/js/oc-dialogs.js | |
parent | 00cc83e3f7ce53840f5cf03a05a3d995355d1925 (diff) | |
download | nextcloud-server-0a0410815ee3130fc73bf9f9cab19f287f7a23b3.tar.gz nextcloud-server-0a0410815ee3130fc73bf9f9cab19f287f7a23b3.zip |
close and destroy dialog on ESC
Diffstat (limited to 'core/js/oc-dialogs.js')
-rw-r--r-- | core/js/oc-dialogs.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/core/js/oc-dialogs.js b/core/js/oc-dialogs.js index 13348b455d1..7c4483cefcf 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'); |