Add fallback for svg app icons

This commit is contained in:
Victor Dubiniuk 2013-06-28 23:10:40 +03:00
parent d110e60316
commit 6ecbae7da9

View file

@ -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();
}
}
}
}