From: Jan-Christoph Borchardt Date: Wed, 7 Aug 2013 19:54:28 +0000 (+0200) Subject: draw attention to the newly added app entry by flashing it twice X-Git-Tag: v6.0.0alpha2~334^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=31d50288a501dad64400450914d076b43b6ea037;p=nextcloud-server.git draw attention to the newly added app entry by flashing it twice --- diff --git a/settings/js/apps.js b/settings/js/apps.js index 545d005eff4..2ff3f0536d4 100644 --- a/settings/js/apps.js +++ b/settings/js/apps.js @@ -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();