close and destroy dialog on ESC
This commit is contained in:
parent
00cc83e3f7
commit
0a0410815e
|
@ -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');
|
||||
|
|
Loading…
Reference in New Issue