]> source.dussan.org Git - nextcloud-server.git/commitdiff
Fix SVG close button of file picker
authorVincent Petry <pvince81@owncloud.com>
Fri, 4 Apr 2014 09:52:15 +0000 (11:52 +0200)
committerVincent Petry <pvince81@owncloud.com>
Fri, 4 Apr 2014 09:52:15 +0000 (11:52 +0200)
core/js/oc-dialogs.js

index 4888fc1eea5e4d62337ff9b70f5af657cfb196b1..4772e10a8d272a37fcedf5296a64c25d28a96ebd 100644 (file)
@@ -19,6 +19,8 @@
  *
  */
 
+/* global OC, t */
+
 /**
  * this class to ease the usage of jquery dialogs
  */
@@ -138,6 +140,9 @@ var OCdialogs = {
                                        self.$filePicker = null;
                                }
                        });
+                       if (!OC.Util.hasSVGSupport()) {
+                               OC.Util.replaceSVG(self.$filePicker.parent());
+                       }
                })
                .fail(function(status, error) {
                        // If the method is called while navigating away