diff options
author | Michael Gapczynski <GapczynskiM@gmail.com> | 2011-07-29 12:26:30 -0400 |
---|---|---|
committer | Michael Gapczynski <GapczynskiM@gmail.com> | 2011-07-29 12:26:30 -0400 |
commit | 997e1f974389f557fc12a33e9e0c641bf71c40c1 (patch) | |
tree | 5a57c3498023d6892ff7cb336624cab609a6fe62 /core/js/js.js | |
parent | 9f867abe75d6e8bfc6b30a8ddbf5ca2644598601 (diff) | |
parent | b6ad416757a78f404d757551ffa1697988bbf5b4 (diff) | |
download | nextcloud-server-997e1f974389f557fc12a33e9e0c641bf71c40c1.tar.gz nextcloud-server-997e1f974389f557fc12a33e9e0c641bf71c40c1.zip |
Merge branch 'master' of git://anongit.kde.org/owncloud
Diffstat (limited to 'core/js/js.js')
-rw-r--r-- | core/js/js.js | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/core/js/js.js b/core/js/js.js index 407c5708701..db96a1adb3e 100644 --- a/core/js/js.js +++ b/core/js/js.js @@ -103,3 +103,13 @@ if (!Array.prototype.indexOf){ function SVGSupport() { return document.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure", "1.1") || document.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#Shape", "1.0"); } + +$(document).ready(function(){ + if(!SVGSupport()){//replace all svg images with png images for browser that dont support svg + $('img.svg').each(function(index,element){ + element=$(element); + var src=element.attr('src'); + element.attr('src',src.substr(0,src.length-3)+'png'); + }); + }; +}); |