diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2014-06-05 10:53:22 +0200 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2014-06-05 10:53:22 +0200 |
commit | 1c20c72efedfb78cdb770070236438cb33d984a8 (patch) | |
tree | 99e6252c88f3b73a26ab2d7bf5982d36a53b720a /settings/js | |
parent | 09cc7c2d4436f9e85dc70a7cf22a105b63cb53c1 (diff) | |
parent | 218131d30d6105d0bcd601ea955b258e3e88bdf1 (diff) | |
download | nextcloud-server-1c20c72efedfb78cdb770070236438cb33d984a8.tar.gz nextcloud-server-1c20c72efedfb78cdb770070236438cb33d984a8.zip |
Merge pull request #8620 from owncloud/design-navigation-two
Toggle app navigation not only on mobile, but on desktop as well
Diffstat (limited to 'settings/js')
-rw-r--r-- | settings/js/apps.js | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/settings/js/apps.js b/settings/js/apps.js index b1c28498266..2539982be83 100644 --- a/settings/js/apps.js +++ b/settings/js/apps.js @@ -232,7 +232,7 @@ OC.Settings.Apps = OC.Settings.Apps || { if(response.status === 'success'){ var navIds=response.nav_ids; for(var i=0; i< navIds.length; i++){ - $('#apps .wrapper').children('li[data-id="'+navIds[i]+'"]').remove(); + $('#apps ul').children('li[data-id="'+navIds[i]+'"]').remove(); } } }); @@ -243,7 +243,7 @@ OC.Settings.Apps = OC.Settings.Apps || { var navEntries=response.nav_entries; for(var i=0; i< navEntries.length; i++){ var entry = navEntries[i]; - var container = $('#apps .wrapper'); + var container = $('#apps ul'); if(container.children('li[data-id="'+entry.id+'"]').length === 0){ var li=$('<li></li>'); @@ -257,8 +257,9 @@ OC.Settings.Apps = OC.Settings.Apps || { li.append(a); // append the new app as last item in the list - // (.push is from sticky footer) - $('#apps .wrapper .push').before(li); + // which is the "add apps" entry with the id + // #apps-management + $('#apps-management').before(li); // scroll the app navigation down // so the newly added app is seen @@ -268,11 +269,12 @@ OC.Settings.Apps = OC.Settings.Apps || { // draw attention to the newly added app entry // by flashing it twice - container.children('li[data-id="' + entry.id + '"]') - .animate({opacity: 0.3}) + $('#header .menutoggle') + .animate({opacity: 0.5}) .animate({opacity: 1}) - .animate({opacity: 0.3}) - .animate({opacity: 1}); + .animate({opacity: 0.5}) + .animate({opacity: 1}) + .animate({opacity: 0.75}); if (!SVGSupport() && entry.icon.match(/\.svg$/i)) { $(img).addClass('svg'); |