]> source.dussan.org Git - nextcloud-server.git/commitdiff
scroll the app navigation down so the newly added app is seen
authorJan-Christoph Borchardt <hey@jancborchardt.net>
Wed, 7 Aug 2013 19:53:53 +0000 (21:53 +0200)
committerJan-Christoph Borchardt <hey@jancborchardt.net>
Wed, 7 Aug 2013 19:53:53 +0000 (21:53 +0200)
settings/js/apps.js

index 66606afad800c42bb79783704ddfc2632fc1ff5b..545d005eff4302097baaad34cf7b86076f74ca34 100644 (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();