Catch double destroy on escape.
This commit is contained in:
parent
afd723fdcd
commit
5f1cbc6a1a
1 changed files with 3 additions and 1 deletions
|
@ -129,7 +129,9 @@ var OCdialogs = {
|
|||
modal: modal,
|
||||
buttons: buttonlist,
|
||||
close: function(event, ui) {
|
||||
self.$filePicker.ocdialog('destroy').remove();
|
||||
try {
|
||||
$(this).ocdialog('destroy').remove();
|
||||
} catch(e) {}
|
||||
self.$filePicker = null;
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue