scroll the app navigation down so the newly added app is seen

This commit is contained in:
Jan-Christoph Borchardt 2013-08-07 21:53:53 +02:00
parent 775f33cc1b
commit 7a9daa99d1
1 changed files with 2 additions and 0 deletions

View File

@ -154,6 +154,8 @@ OC.Settings.Apps = OC.Settings.Apps || {
li.append(a);
// 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');
if (!SVGSupport() && entry.icon.match(/\.svg$/i)) {
$(img).addClass('svg');
replaceSVG();