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

Unified Diff: chrome/browser/resources/options/options_page.js

Issue 2901008: Add the rest of the content settings tabs. (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: git try -b mac Created 10 years, 5 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/options/options_page.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/options/options_page.js
diff --git a/chrome/browser/resources/options/options_page.js b/chrome/browser/resources/options/options_page.js
index c6add994dbed39745608770634c4b9551cdf6b3d..d4984c8df34c96d35b0587342c8d76814c02474f 100644
--- a/chrome/browser/resources/options/options_page.js
+++ b/chrome/browser/resources/options/options_page.js
@@ -91,7 +91,7 @@ OptionsPage.registerSubPage = function(page) {
OptionsPage.registeredPages_[page.name] = page;
var pageNav = document.createElement('li');
pageNav.id = page.name + 'PageNav';
- pageNav.className = 'navbar-item subpage-nav';
+ pageNav.className = 'navbar-item hidden';
pageNav.setAttribute('pageName', page.name);
pageNav.textContent = page.title;
var subpagesnav = $('subpagesnav');
@@ -146,6 +146,8 @@ OptionsPage.prototype = {
}
if (this.tab) {
this.tab.classList.add('navbar-item-selected');
+ if (this.tab.parentNode && this.tab.parentNode.id == 'subpagesnav')
+ this.tab.classList.remove('hidden');
}
} else {
if (this.isOverlay) {
@@ -156,6 +158,8 @@ OptionsPage.prototype = {
this.pageDiv.style.display = 'none';
if (this.tab) {
this.tab.classList.remove('navbar-item-selected');
+ if (this.tab.parentNode && this.tab.parentNode.id == 'subpagesnav')
+ this.tab.classList.add('hidden');
}
}
}
« no previous file with comments | « chrome/browser/resources/options/options_page.css ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698