diff options
author | Morris Jobke <morris.jobke@gmail.com> | 2013-09-02 01:11:09 -0700 |
---|---|---|
committer | Morris Jobke <morris.jobke@gmail.com> | 2013-09-02 01:11:09 -0700 |
commit | 91c0923cce85c446a748eb47bec784cf9d8a2c17 (patch) | |
tree | b8dbb4160956dc9e550c68d68d1b7b0f752638da /settings | |
parent | a2f18eabb135c33dc3b557129036778f1aea0972 (diff) | |
parent | 1e834c57a4d6fd8c2ae35b4a692d2f8c6da4ea72 (diff) | |
download | nextcloud-server-91c0923cce85c446a748eb47bec784cf9d8a2c17.tar.gz nextcloud-server-91c0923cce85c446a748eb47bec784cf9d8a2c17.zip |
Merge pull request #4663 from owncloud/fix-sticky-apps
fix issues caused by introduction of sticky Apps management footer
Diffstat (limited to 'settings')
-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 1ae45932172..54810776d2b 100644 --- a/settings/js/apps.js +++ b/settings/js/apps.js @@ -169,7 +169,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'); + var container = $('#apps .wrapper'); if(container.children('li[data-id="'+entry.id+'"]').length === 0){ var li=$('<li></li>'); @@ -181,10 +181,10 @@ OC.Settings.Apps = OC.Settings.Apps || { a.prepend(filename); a.prepend(img); li.append(a); - // prepend the new app before the 'More apps' function - $('#apps-management').before(li); + // append the new app as last item in the list (.push is from sticky footer) + $('#apps .wrapper .push').before(li); // scroll the app navigation down so the newly added app is seen - $('#navigation').animate({ scrollTop: $('#apps').height() }, 'slow'); + $('#navigation').animate({ scrollTop: $('#navigation').height() }, 'slow'); // draw attention to the newly added app entry by flashing it twice container.children('li[data-id="'+entry.id+'"]').animate({opacity:.3}).animate({opacity:1}).animate({opacity:.3}).animate({opacity:1}); |