summaryrefslogtreecommitdiffstats
path: root/chrome/browser/resources/ntp/apps.js
diff options
context:
space:
mode:
authorthakis@chromium.org <thakis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-10-04 17:55:49 +0000
committerthakis@chromium.org <thakis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-10-04 17:55:49 +0000
commitd2dd3919acdac4dda3116d9a5a596c1130b5da07 (patch)
treed89c5c9b588bbf1b6e097e8281ff13406e489744 /chrome/browser/resources/ntp/apps.js
parent12fbb48496e83be7bc754b90147aa6b9e68082cc (diff)
downloadchromium_src-d2dd3919acdac4dda3116d9a5a596c1130b5da07.zip
chromium_src-d2dd3919acdac4dda3116d9a5a596c1130b5da07.tar.gz
chromium_src-d2dd3919acdac4dda3116d9a5a596c1130b5da07.tar.bz2
Unminimize app section on app install.
BUG=55148 TEST=Minimize apps section. Install an app. Apps section should no longer be minimized. Review URL: http://codereview.chromium.org/3555010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@61388 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/resources/ntp/apps.js')
-rw-r--r--chrome/browser/resources/ntp/apps.js8
1 files changed, 6 insertions, 2 deletions
diff --git a/chrome/browser/resources/ntp/apps.js b/chrome/browser/resources/ntp/apps.js
index 70018aa..7c55c98 100644
--- a/chrome/browser/resources/ntp/apps.js
+++ b/chrome/browser/resources/ntp/apps.js
@@ -228,8 +228,12 @@ var apps = (function() {
document.documentElement.setAttribute("install-animation-enabled",
"false");
});
- if ($('apps').classList.contains('hidden') &&
- !(shownSections & MINIMIZED_APPS))
+
+ // Make sure apps is de-minimized...
+ setSectionVisible('apps', Section.APPS, true, MINIMIZED_APPS);
+
+ // ...and expanded.
+ if ($('apps').classList.contains('hidden'))
toggleSectionVisibilityAndAnimate('APPS');
}