From 775f33cc1b64bdd6ed48039fdd91331f0e91826d Mon Sep 17 00:00:00 2001 From: Jan-Christoph Borchardt Date: Wed, 7 Aug 2013 21:53:25 +0200 Subject: prepend the new app before the 'More apps' function --- settings/js/apps.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'settings/js/apps.js') diff --git a/settings/js/apps.js b/settings/js/apps.js index 0540d9b1c58..66606afad80 100644 --- a/settings/js/apps.js +++ b/settings/js/apps.js @@ -152,7 +152,8 @@ OC.Settings.Apps = OC.Settings.Apps || { a.prepend(filename); a.prepend(img); li.append(a); - container.append(li); + // prepend the new app before the 'More apps' function + $('#apps-management').before(li); if (!SVGSupport() && entry.icon.match(/\.svg$/i)) { $(img).addClass('svg'); replaceSVG(); -- cgit v1.2.3 From 7a9daa99d1e801620affb38bf78a7323a59ed908 Mon Sep 17 00:00:00 2001 From: Jan-Christoph Borchardt Date: Wed, 7 Aug 2013 21:53:53 +0200 Subject: scroll the app navigation down so the newly added app is seen --- settings/js/apps.js | 2 ++ 1 file changed, 2 insertions(+) (limited to 'settings/js/apps.js') diff --git a/settings/js/apps.js b/settings/js/apps.js index 66606afad80..545d005eff4 100644 --- a/settings/js/apps.js +++ b/settings/js/apps.js @@ -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(); -- cgit v1.2.3 From 31d50288a501dad64400450914d076b43b6ea037 Mon Sep 17 00:00:00 2001 From: Jan-Christoph Borchardt Date: Wed, 7 Aug 2013 21:54:28 +0200 Subject: draw attention to the newly added app entry by flashing it twice --- settings/js/apps.js | 3 +++ 1 file changed, 3 insertions(+) (limited to 'settings/js/apps.js') 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(); -- cgit v1.2.3