diff --git a/settings/js/apps.js b/settings/js/apps.js index 641e8999b1..70857a8f20 100644 --- a/settings/js/apps.js +++ b/settings/js/apps.js @@ -31,17 +31,22 @@ OC.Settings.Apps = OC.Settings.Apps || { if (container.children('li[data-id="' + entry.id + '"]').length === 0) { var li = $('
'); li.attr('data-id', entry.id); - var img = ''; + var img = ''; var a = $('').attr('href', entry.href); var filename = $(''); var loading = $('').css('display', 'none'); - filename.text(entry.name); - a.prepend(filename); + filename.text(entry.name); filename.text(entry.name); a.prepend(loading); a.prepend(img); li.append(a); + li.append(filename); // add app icon to the navigation var previousElement = $('#navigation li[data-id=' + previousEntry.id + ']'); @@ -65,20 +70,23 @@ OC.Settings.Apps = OC.Settings.Apps || { if ($('#appmenu').children('li[data-id="' + entry.id + '"]').length === 0) { var li = $(''); li.attr('data-id', entry.id); - var img = ''; + // Generating svg embedded image (see layout.user.php) + var img = ''; var a = $('').attr('href', entry.href); var filename = $(''); var loading = $('').css('display', 'none'); filename.text(entry.name); - a.prepend(filename); a.prepend(loading); a.prepend(img); li.append(a); + li.append(filename); // add app icon to the navigation var previousElement = $('#appmenu li[data-id=' + previousEntry.id + ']'); @@ -102,4 +110,4 @@ OC.Settings.Apps = OC.Settings.Apps || { } }); } -}; \ No newline at end of file +};