Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(256)

Unified Diff: chrome/browser/resources/ntp/apps.js

Issue 3371010: NTP Apps bug fixes. (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: Arv's comments Created 10 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/resources/new_new_tab.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/ntp/apps.js
diff --git a/chrome/browser/resources/ntp/apps.js b/chrome/browser/resources/ntp/apps.js
index c946b4d40076087ebd4c96df9936d4868cb88422..4c717b3710f5003f85ff49206eea50cbae835ac7 100644
--- a/chrome/browser/resources/ntp/apps.js
+++ b/chrome/browser/resources/ntp/apps.js
@@ -3,7 +3,7 @@
// found in the LICENSE file.
function getAppsCallback(data) {
- logEvent('recieved apps');
+ logEvent('received apps');
var appsSection = $('apps');
var appsSectionContent = $('apps-maxiview');
var appsMiniview = appsSection.getElementsByClassName('miniview')[0];
@@ -152,8 +152,14 @@ var apps = (function() {
div.setAttribute('new', 'new');
// Delay changing the attribute a bit to let the page settle down a bit.
setTimeout(function() {
+ // This will trigger the 'bounce' animation defined in apps.css.
div.setAttribute('new', 'installed');
}, 500);
+ div.addEventListener('webkitAnimationEnd', function(e) {
+ div.removeAttribute('new');
+ });
+ if ($('apps').classList.contains('hidden'))
+ toggleSectionVisibilityAndAnimate('APPS');
}
var settingsButton = div.appendChild(new cr.ui.ContextMenuButton);
« no previous file with comments | « chrome/browser/resources/new_new_tab.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698