diff options
author | Morris Jobke <hey@morrisjobke.de> | 2014-10-17 12:01:27 +0200 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2014-10-17 12:01:27 +0200 |
commit | f1a5ebd59d5403cdae1ed60513c9feb469365d09 (patch) | |
tree | c7d7a342797859e53a1edb3f59a218b90b01beb4 /apps/files_sharing | |
parent | 276db93daceda7498a262f1f56cb24104d26ac76 (diff) | |
parent | 4deb57bfaeacd2eee510ee37797d5e9b504d9888 (diff) | |
download | nextcloud-server-f1a5ebd59d5403cdae1ed60513c9feb469365d09.tar.gz nextcloud-server-f1a5ebd59d5403cdae1ed60513c9feb469365d09.zip |
Merge pull request #11611 from owncloud/fix-svg-master
Fix SVG icons
Diffstat (limited to 'apps/files_sharing')
-rw-r--r-- | apps/files_sharing/js/public.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files_sharing/js/public.js b/apps/files_sharing/js/public.js index b3036254401..c4b5508692e 100644 --- a/apps/files_sharing/js/public.js +++ b/apps/files_sharing/js/public.js @@ -85,7 +85,7 @@ OCA.Sharing.PublicApp = { }; var img = $('<img class="publicpreview">'); - if (previewSupported === 'true' || mimetype.substr(0, mimetype.indexOf('/')) === 'image') { + if (previewSupported === 'true' || mimetype.substr(0, mimetype.indexOf('/')) === 'image' && mimetype !== 'image/svg+xml') { img.attr('src', OC.filePath('files_sharing', 'ajax', 'publicpreview.php') + '?' + OC.buildQueryString(params)); img.appendTo('#imgframe'); } else if (mimetype.substr(0, mimetype.indexOf('/')) !== 'video') { |