]> source.dussan.org Git - nextcloud-server.git/commitdiff
Catch double destroy on escape.
authorThomas Tanghus <thomas@tanghus.net>
Mon, 3 Jun 2013 01:19:35 +0000 (03:19 +0200)
committerThomas Tanghus <thomas@tanghus.net>
Mon, 3 Jun 2013 01:19:35 +0000 (03:19 +0200)
core/js/oc-dialogs.js

index a6a9e7e57e248ee8913d20b45da77f6225c9ce82..456cc34ed4e375e24fbee7b2c4003f72de1ba94e 100644 (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;
                                }
                        });