diff options
author | Jan-Christoph Borchardt <hey@jancborchardt.net> | 2014-02-26 10:34:38 +0100 |
---|---|---|
committer | Jan-Christoph Borchardt <hey@jancborchardt.net> | 2014-02-26 10:34:38 +0100 |
commit | bc1c136cd6c27905d9e9118f355680b26a607eb6 (patch) | |
tree | 7fd0a0b9b054d4833c05ac400ccb1dee85c14153 /settings/js | |
parent | 7f7d674c2af4d4b9202cb55d5edf4965f92d3ab8 (diff) | |
download | nextcloud-server-bc1c136cd6c27905d9e9118f355680b26a607eb6.tar.gz nextcloud-server-bc1c136cd6c27905d9e9118f355680b26a607eb6.zip |
coding style fixes: cut long lines, whitespace
Diffstat (limited to 'settings/js')
-rw-r--r-- | settings/js/apps.js | 22 |
1 files changed, 17 insertions, 5 deletions
diff --git a/settings/js/apps.js b/settings/js/apps.js index 2c6f77d9314..26aecbee310 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'); |