close and destroy dialog on ESC

This commit is contained in:
Jörn Friedrich Dreyer 2013-09-08 10:11:35 +02:00
parent 00cc83e3f7
commit 0a0410815e
1 changed files with 4 additions and 1 deletions

View File

@ -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');