summaryrefslogtreecommitdiffstats
path: root/settings/js
diff options
context:
space:
mode:
authorJan-Christoph Borchardt <hey@jancborchardt.net>2013-08-07 21:54:28 +0200
committerJan-Christoph Borchardt <hey@jancborchardt.net>2013-08-07 21:54:28 +0200
commit31d50288a501dad64400450914d076b43b6ea037 (patch)
tree9d5a3a793532da47fb337ae2904727d15a166710 /settings/js
parent7a9daa99d1e801620affb38bf78a7323a59ed908 (diff)
downloadnextcloud-server-31d50288a501dad64400450914d076b43b6ea037.tar.gz
nextcloud-server-31d50288a501dad64400450914d076b43b6ea037.zip
draw attention to the newly added app entry by flashing it twice
Diffstat (limited to 'settings/js')
-rw-r--r--settings/js/apps.js3
1 files changed, 3 insertions, 0 deletions
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();