diff options
author | Jan-Christoph Borchardt <hey@jancborchardt.net> | 2013-08-16 00:29:43 +0200 |
---|---|---|
committer | Jan-Christoph Borchardt <hey@jancborchardt.net> | 2013-08-16 00:29:43 +0200 |
commit | 399adf67b0ea76c3d1f10ed19734c2e1fed8fbfe (patch) | |
tree | 550b51cf58b2637becbd33231f2dbaff70e80678 /settings/js/apps.js | |
parent | 5a77b671479003f1181f47beabed13c87450ffab (diff) | |
parent | bd1895bdf8dff07bf9dc9803ce991e39daa52acc (diff) | |
download | nextcloud-server-399adf67b0ea76c3d1f10ed19734c2e1fed8fbfe.tar.gz nextcloud-server-399adf67b0ea76c3d1f10ed19734c2e1fed8fbfe.zip |
merge master into css-fixes
Diffstat (limited to 'settings/js/apps.js')
-rw-r--r-- | settings/js/apps.js | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/settings/js/apps.js b/settings/js/apps.js index 0540d9b1c58..2ff3f0536d4 100644 --- a/settings/js/apps.js +++ b/settings/js/apps.js @@ -152,7 +152,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(); |