summaryrefslogtreecommitdiffstats
path: root/settings/js
diff options
context:
space:
mode:
authorMorris Jobke <morris.jobke@gmail.com>2014-06-04 18:22:40 +0200
committerMorris Jobke <morris.jobke@gmail.com>2014-06-04 18:22:40 +0200
commit210a1ef7e6862af6313063b9e64b7c4563c7540d (patch)
tree26e1efe0736fa7aee748a8813d6620d5628128ad /settings/js
parent44dca8b7405fa8a3013f19d1403c6318c02c0d90 (diff)
downloadnextcloud-server-210a1ef7e6862af6313063b9e64b7c4563c7540d.tar.gz
nextcloud-server-210a1ef7e6862af6313063b9e64b7c4563c7540d.zip
add to app navigation after enabling
Diffstat (limited to 'settings/js')
-rw-r--r--settings/js/apps.js18
1 files changed, 10 insertions, 8 deletions
diff --git a/settings/js/apps.js b/settings/js/apps.js
index b1c28498266..4018f40861d 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: .5})
.animate({opacity: 1})
- .animate({opacity: 0.3})
- .animate({opacity: 1});
+ .animate({opacity: .5})
+ .animate({opacity: 1})
+ .animate({opacity: .75});
if (!SVGSupport() && entry.icon.match(/\.svg$/i)) {
$(img).addClass('svg');