diff options
author | Jan-Christoph Borchardt <hey@jancborchardt.net> | 2013-01-31 05:01:20 -0800 |
---|---|---|
committer | Jan-Christoph Borchardt <hey@jancborchardt.net> | 2013-01-31 05:01:20 -0800 |
commit | c801b86bc2551edfb8aeff20a9dee35dd70fb949 (patch) | |
tree | 6b7027bdf63f7095e7aac96775f43079976841a3 /settings/js | |
parent | 228a181d48f27123a97c612cd0f686d92c05a235 (diff) | |
parent | b978cc8b288d3e05b6eb83b04215402665ed128b (diff) | |
download | nextcloud-server-c801b86bc2551edfb8aeff20a9dee35dd70fb949.tar.gz nextcloud-server-c801b86bc2551edfb8aeff20a9dee35dd70fb949.zip |
Merge pull request #1359 from raghunayyar/navigation
No Image Repetition on Enabling Apps in Navigation Bar
Diffstat (limited to 'settings/js')
-rw-r--r-- | settings/js/apps.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/settings/js/apps.js b/settings/js/apps.js index c4c36b4bb12..83a3f3c7dcc 100644 --- a/settings/js/apps.js +++ b/settings/js/apps.js @@ -109,12 +109,12 @@ OC.Settings.Apps = OC.Settings.Apps || { var container = $('#apps'); if(container.children('li[data-id="'+entry.id+'"]').length === 0){ - var li=$('<li></li>'); + var li=$('<li></li>').attr({class: 'enabled-app'}); li.attr('data-id', entry.id); - var a=$('<a></a>'); - a.attr('style', 'background-image: url('+entry.icon+')'); + var img= $('<img></img>').attr({ src: entry.icon, class:'icon'}); + li.append(img); + var a=$('<a></a>').attr('href', entry.href); a.text(entry.name); - a.attr('href', entry.href); li.append(a); container.append(li); } |