draw attention to the newly added app entry by flashing it twice

This commit is contained in:
Jan-Christoph Borchardt 2013-08-07 21:54:28 +02:00
parent 7a9daa99d1
commit 31d50288a5
1 changed files with 3 additions and 0 deletions

View 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();