Merge pull request #1429 from owncloud/fix_addNavigation
Make app icon linkable when enabling app.
This commit is contained in:
commit
9961235c7b
|
@ -228,11 +228,6 @@ fieldset.warning legend { color:#b94a48 !important; }
|
||||||
#navigation a:hover, #navigation a:focus { opacity:.8; }
|
#navigation a:hover, #navigation a:focus { opacity:.8; }
|
||||||
#navigation a.active { opacity:1; }
|
#navigation a.active { opacity:1; }
|
||||||
#navigation .icon { display:block; width:32px; height:32px; margin:0 16px 0; }
|
#navigation .icon { display:block; width:32px; height:32px; margin:0 16px 0; }
|
||||||
#navigation .enabled-app:hover, #navigation .enabled-app:focus { opacity:1; }
|
|
||||||
#navigation .enabled-app img { opacity:0.3; cursor:pointer;}
|
|
||||||
#navigation .enabled-app a {padding:4px 0 4px; }
|
|
||||||
#navigation .enabled-app:hover a, #navigation .enabled-app:focus a {opacity:0.8; }
|
|
||||||
#navigation .enabled-app:hover img, #navigation .enabled-app:focus img {opacity:0.8; }
|
|
||||||
#navigation li:first-child a { padding-top:16px; }
|
#navigation li:first-child a { padding-top:16px; }
|
||||||
#settings { float:right; margin-top:7px; color:#bbb; text-shadow:0 -1px 0 #000; }
|
#settings { float:right; margin-top:7px; color:#bbb; text-shadow:0 -1px 0 #000; }
|
||||||
#expand { padding:15px; cursor:pointer; font-weight:bold; }
|
#expand { padding:15px; cursor:pointer; font-weight:bold; }
|
||||||
|
|
|
@ -132,12 +132,12 @@ OC.Settings.Apps = OC.Settings.Apps || {
|
||||||
var container = $('#apps');
|
var container = $('#apps');
|
||||||
|
|
||||||
if(container.children('li[data-id="'+entry.id+'"]').length === 0){
|
if(container.children('li[data-id="'+entry.id+'"]').length === 0){
|
||||||
var li=$('<li></li>').attr({class: 'enabled-app'});
|
var li=$('<li></li>');
|
||||||
li.attr('data-id', entry.id);
|
li.attr('data-id', entry.id);
|
||||||
var img= $('<img></img>').attr({ src: entry.icon, class:'icon'});
|
var img= $('<img></img>').attr({ src: entry.icon, class:'icon'});
|
||||||
li.append(img);
|
|
||||||
var a=$('<a></a>').attr('href', entry.href);
|
var a=$('<a></a>').attr('href', entry.href);
|
||||||
a.text(entry.name);
|
a.text(entry.name);
|
||||||
|
a.prepend(img);
|
||||||
li.append(a);
|
li.append(a);
|
||||||
container.append(li);
|
container.append(li);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue