aboutsummaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2018-10-08 17:30:14 +0200
committerGitHub <noreply@github.com>2018-10-08 17:30:14 +0200
commit5d83645a00acd50ac74f5a8b27ab167f37439881 (patch)
tree333d4298e467462890ea61cc274ef0ffde10d684 /apps
parentc4ac9bcea2deb97d90576233557b1a23907e2e5a (diff)
parentdccb3ab5b2c8f8029823d20ee3e6dd14a5098d87 (diff)
downloadnextcloud-server-5d83645a00acd50ac74f5a8b27ab167f37439881.tar.gz
nextcloud-server-5d83645a00acd50ac74f5a8b27ab167f37439881.zip
Merge pull request #11680 from nextcloud/refactor/remove-deprecated-svg-apis
Remove deprecated SVG helpers for old IEs
Diffstat (limited to 'apps')
-rw-r--r--apps/files/js/breadcrumb.js5
-rw-r--r--apps/files_sharing/js/public.js2
2 files changed, 1 insertions, 6 deletions
diff --git a/apps/files/js/breadcrumb.js b/apps/files/js/breadcrumb.js
index 319425b67bd..e1193e79b28 100644
--- a/apps/files/js/breadcrumb.js
+++ b/apps/files/js/breadcrumb.js
@@ -178,11 +178,6 @@
$crumb.append(view.$el);
}, this);
- // in case svg is not supported by the browser we need to execute the fallback mechanism
- if (!OC.Util.hasSVGSupport()) {
- OC.Util.replaceSVG(this.$el);
- }
-
// setup drag and drop
if (this.onDrop) {
this.$el.find('.crumb:not(:last-child):not(.crumbmenu), .crumblist:not(:last-child)').droppable({
diff --git a/apps/files_sharing/js/public.js b/apps/files_sharing/js/public.js
index 64ffe8bbf2e..3328b1663d1 100644
--- a/apps/files_sharing/js/public.js
+++ b/apps/files_sharing/js/public.js
@@ -168,7 +168,7 @@ OCA.Sharing.PublicApp = {
img.attr('src', OC.generateUrl('/apps/files_sharing/publicpreview/' + token + '?' + OC.buildQueryString(params)));
imgcontainer.appendTo('#imgframe');
} else if (mimetype.substr(0, mimetype.indexOf('/')) !== 'video') {
- img.attr('src', OC.Util.replaceSVGIcon(mimetypeIcon));
+ img.attr('src', mimetypeIcon);
img.attr('width', 128);
imgcontainer.appendTo('#imgframe');
}