diff options
author | aa@chromium.org <aa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-08-26 05:29:54 +0000 |
---|---|---|
committer | aa@chromium.org <aa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-08-26 05:29:54 +0000 |
commit | a616d400611c859af00c4f2986f326959ef4b6e4 (patch) | |
tree | db7d11eed8295d6e680e83eb1b18ab37f0280edf /chrome/browser/resources/ntp/apps.js | |
parent | 1b8740fcc945425012ecc755987286dd22a098f6 (diff) | |
download | chromium_src-a616d400611c859af00c4f2986f326959ef4b6e4.zip chromium_src-a616d400611c859af00c4f2986f326959ef4b6e4.tar.gz chromium_src-a616d400611c859af00c4f2986f326959ef4b6e4.tar.bz2 |
First set of changes for M7 NTP.
This doesn't do any behavior changes -- it just implements
the styling. So we still have multi expand, and the recently
closed section is still toggleable.
I also didn't make the changes to the placement or text of
the web store icon. I will make those separately.
Screen caps:
http://aaronboodman.com/z_dropbox/cr3156049/
BUG=53248
Review URL: http://codereview.chromium.org/3156049
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@57473 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/resources/ntp/apps.js')
-rw-r--r-- | chrome/browser/resources/ntp/apps.js | 20 |
1 files changed, 4 insertions, 16 deletions
diff --git a/chrome/browser/resources/ntp/apps.js b/chrome/browser/resources/ntp/apps.js index 41c2e6e..64b490f 100644 --- a/chrome/browser/resources/ntp/apps.js +++ b/chrome/browser/resources/ntp/apps.js @@ -5,26 +5,14 @@ function getAppsCallback(data) { logEvent('recieved apps'); var appsSection = $('apps-section'); - var debugSection = $('debug'); - appsSection.textContent = ''; + var appsSectionContent = $('apps-section-content'); + appsSectionContent.textContent = ''; data.apps.forEach(function(app) { - appsSection.appendChild(apps.createElement(app)); + appsSectionContent.appendChild(apps.createElement(app)); }); - // TODO(aa): Figure out what to do with the debug mode when we turn apps on - // for everyone. - if (appsSection.hasChildNodes()) { - appsSection.classList.remove('disabled'); - if (data.showDebugLink) { - debugSection.classList.remove('disabled'); - } - - appsSection.appendChild(apps.createWebStoreElement()); - } else { - appsSection.classList.add('disabled'); - debugSection.classList.add('disabled'); - } + appsSectionContent.appendChild(apps.createWebStoreElement()); } var apps = { |