Catch double destroy on escape.

remotes/origin/stable6
Thomas Tanghus 12 years ago
parent afd723fdcd
commit 5f1cbc6a1a
  1. 4
      core/js/oc-dialogs.js

@ -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…
Cancel
Save