Browse Source

Catch double destroy on escape.

tags/v6.0.0alpha2
Thomas Tanghus 11 years ago
parent
commit
5f1cbc6a1a
1 changed files with 3 additions and 1 deletions
  1. 3
    1
      core/js/oc-dialogs.js

+ 3
- 1
core/js/oc-dialogs.js View File

@@ -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