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

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

Issue 3396021: Fix bug where install animation would replay if something on the (Closed) Base URL: git://codf21.jail/chromium.git
Patch Set: 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/ntp/apps.css ('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 057ca6ac07a404ab3c8650505058ddda96e21b22..d9098d555f35675bc8599b0c9b42d1cebef72f3a 100644
--- a/chrome/browser/resources/ntp/apps.js
+++ b/chrome/browser/resources/ntp/apps.js
@@ -165,6 +165,12 @@ var apps = (function() {
}, 500);
div.addEventListener('webkitAnimationEnd', function(e) {
div.removeAttribute('new');
+
+ // If we get new data (eg because something installs in another tab,
+ // or because we uninstall something here), don't run the install
+ // animation again.
+ document.documentElement.setAttribute("install-animation-enabled",
+ "false");
});
if ($('apps').classList.contains('hidden'))
toggleSectionVisibilityAndAnimate('APPS');
« no previous file with comments | « chrome/browser/resources/ntp/apps.css ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698