]> source.dussan.org Git - nextcloud-server.git/commitdiff
draw attention to the newly added app entry by flashing it twice
authorJan-Christoph Borchardt <hey@jancborchardt.net>
Wed, 7 Aug 2013 19:54:28 +0000 (21:54 +0200)
committerJan-Christoph Borchardt <hey@jancborchardt.net>
Wed, 7 Aug 2013 19:54:28 +0000 (21:54 +0200)
settings/js/apps.js

index 545d005eff4302097baaad34cf7b86076f74ca34..2ff3f0536d4d183d6e1a98f24027a181084cff46 100644 (file)
@@ -156,6 +156,9 @@ OC.Settings.Apps = OC.Settings.Apps || {
                                                $('#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();