summaryrefslogtreecommitdiffstats
path: root/settings/js
diff options
context:
space:
mode:
authorkondou <kondou@ts.unde.re>2013-08-18 12:15:22 +0200
committerkondou <kondou@ts.unde.re>2013-08-18 12:15:22 +0200
commitc741a25eaa64cbee65112ec83f0a4b196885daa3 (patch)
tree12d6b5ebe08d31a45157f21083b2de6367cc19f9 /settings/js
parentb24b208dce41d11ace0295a93d4303c75ffa38d4 (diff)
parentc427e256e1509453503140c0adacd3abcb7ef368 (diff)
downloadnextcloud-server-c741a25eaa64cbee65112ec83f0a4b196885daa3.tar.gz
nextcloud-server-c741a25eaa64cbee65112ec83f0a4b196885daa3.zip
Merge branch 'master' into improve_app-management
Diffstat (limited to 'settings/js')
-rw-r--r--settings/js/apps.js8
1 files changed, 7 insertions, 1 deletions
diff --git a/settings/js/apps.js b/settings/js/apps.js
index 6b32686a693..6c835a59997 100644
--- a/settings/js/apps.js
+++ b/settings/js/apps.js
@@ -160,7 +160,13 @@ OC.Settings.Apps = OC.Settings.Apps || {
a.prepend(filename);
a.prepend(img);
li.append(a);
- container.append(li);
+ // prepend the new app before the 'More apps' function
+ $('#apps-management').before(li);
+ // scroll the app navigation down so the newly added app is seen
+ $('#navigation').animate({ scrollTop: $('#apps').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});
+
if (!SVGSupport() && entry.icon.match(/\.svg$/i)) {
$(img).addClass('svg');
replaceSVG();