summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan-Christoph Borchardt <hey@jancborchardt.net>2014-02-26 14:24:34 +0100
committerJan-Christoph Borchardt <hey@jancborchardt.net>2014-02-26 14:24:34 +0100
commit84eea47991d33922345e4fb15f7e74638e2a7ccc (patch)
treed801d3451228ba9abb1ad1974807573062c0a493
parentbeff83feb25580fd420b72affa49639524cca0f7 (diff)
parentbc1c136cd6c27905d9e9118f355680b26a607eb6 (diff)
downloadnextcloud-server-84eea47991d33922345e4fb15f7e74638e2a7ccc.tar.gz
nextcloud-server-84eea47991d33922345e4fb15f7e74638e2a7ccc.zip
Merge pull request #7406 from owncloud/settings-apps.js-style
coding style fixes: cut long lines, whitespace
-rw-r--r--settings/js/apps.js22
1 files changed, 17 insertions, 5 deletions
diff --git a/settings/js/apps.js b/settings/js/apps.js
index b6bd9ee7205..3dbc8a2f7c2 100644
--- a/settings/js/apps.js
+++ b/settings/js/apps.js
@@ -207,12 +207,24 @@ OC.Settings.Apps = OC.Settings.Apps || {
a.prepend(filename);
a.prepend(img);
li.append(a);
- // append the new app as last item in the list (.push is from sticky footer)
+
+ // append the new app as last item in the list
+ // (.push is from sticky footer)
$('#apps .wrapper .push').before(li);
- // scroll the app navigation down so the newly added app is seen
- $('#navigation').animate({ scrollTop: $('#navigation').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});
+
+ // scroll the app navigation down
+ // so the newly added app is seen
+ $('#navigation').animate({
+ scrollTop: $('#navigation').height()
+ }, 'slow');
+
+ // draw attention to the newly added app entry
+ // by flashing it twice
+ container.children('li[data-id="' + entry.id + '"]')
+ .animate({opacity: 0.3})
+ .animate({opacity: 1})
+ .animate({opacity: 0.3})
+ .animate({opacity: 1});
if (!SVGSupport() && entry.icon.match(/\.svg$/i)) {
$(img).addClass('svg');