Add fallback for svg app icons
This commit is contained in:
parent
d110e60316
commit
6ecbae7da9
1 changed files with 5 additions and 1 deletions
|
@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue