From d4f9cc567af69a52e5ac43f700d970b6ea4b77d0 Mon Sep 17 00:00:00 2001 From: Vincent Petry Date: Fri, 4 Apr 2014 11:52:15 +0200 Subject: [PATCH] Fix SVG close button of file picker --- core/js/oc-dialogs.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/core/js/oc-dialogs.js b/core/js/oc-dialogs.js index 4888fc1eea..4772e10a8d 100644 --- a/core/js/oc-dialogs.js +++ b/core/js/oc-dialogs.js @@ -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