Merge pull request #7406 from owncloud/settings-apps.js-style

coding style fixes: cut long lines, whitespace
This commit is contained in:
Jan-Christoph Borchardt 2014-02-26 14:24:34 +01:00
commit 84eea47991
1 changed files with 17 additions and 5 deletions

View File

@ -207,12 +207,24 @@ OC.Settings.Apps = OC.Settings.Apps || {
a.prepend(filename); a.prepend(filename);
a.prepend(img); a.prepend(img);
li.append(a); 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); $('#apps .wrapper .push').before(li);
// scroll the app navigation down so the newly added app is seen
$('#navigation').animate({ scrollTop: $('#navigation').height() }, 'slow'); // scroll the app navigation down
// draw attention to the newly added app entry by flashing it twice // so the newly added app is seen
container.children('li[data-id="'+entry.id+'"]').animate({opacity:.3}).animate({opacity:1}).animate({opacity:.3}).animate({opacity:1}); $('#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)) { if (!SVGSupport() && entry.icon.match(/\.svg$/i)) {
$(img).addClass('svg'); $(img).addClass('svg');