summaryrefslogtreecommitdiffstats
path: root/settings
diff options
context:
space:
mode:
authorVictor Dubiniuk <victor.dubiniuk@gmail.com>2013-06-28 23:10:40 +0300
committerVictor Dubiniuk <victor.dubiniuk@gmail.com>2013-06-28 23:10:40 +0300
commit6ecbae7da94fcd53c16a07ad68bc31700bd1189b (patch)
tree12daab64bf672ff2d92f6ab43b6242f1615f5962 /settings
parentd110e60316f7dd28a2b5876e8911f983fea0883c (diff)
downloadnextcloud-server-6ecbae7da94fcd53c16a07ad68bc31700bd1189b.tar.gz
nextcloud-server-6ecbae7da94fcd53c16a07ad68bc31700bd1189b.zip
Add fallback for svg app icons
Diffstat (limited to 'settings')
-rw-r--r--settings/js/apps.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/settings/js/apps.js b/settings/js/apps.js
index bdeddfb84c2..4d03a86ac65 100644
--- a/settings/js/apps.js
+++ b/settings/js/apps.js
@@ -147,12 +147,16 @@ OC.Settings.Apps = OC.Settings.Apps || {
li.attr('data-id', entry.id);
var img= $('<img class="icon"/>').attr({ src: entry.icon});
var a=$('<a></a>').attr('href', entry.href);
- var filename=$('<span></span>')
+ var filename=$('<span></span>');
filename.text(entry.name);
a.prepend(filename);
a.prepend(img);
li.append(a);
container.append(li);
+ if (entry.icon.match(/\.svg$/i)) {
+ $(img).addClass('svg');
+ replaceSVG();
+ }
}
}
}