Skip to content
Snippets Groups Projects
Commit 0a041081 authored by Jörn Friedrich Dreyer's avatar Jörn Friedrich Dreyer
Browse files

close and destroy dialog on ESC

parent 00cc83e3
No related branches found
No related tags found
No related merge requests found
...@@ -387,7 +387,10 @@ var OCdialogs = { ...@@ -387,7 +387,10 @@ var OCdialogs = {
closeOnEscape: true, closeOnEscape: true,
modal: true, modal: true,
buttons: buttonlist, buttons: buttonlist,
closeButton: null closeButton: null,
close: function(event, ui) {
$(this).ocdialog('destroy').remove();
}
}); });
$(dialog_id).css('height','auto'); $(dialog_id).css('height','auto');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment