Chromium Code Reviews

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

Issue 3086017: Add tabs to passwords and exceptions subpage (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: add todo for mac Created 10 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Index: chrome/browser/resources/options/content_settings.js
diff --git a/chrome/browser/resources/options/content_settings.js b/chrome/browser/resources/options/content_settings.js
index 079a9a750d722fa204f6cc1540de35549d1f59e3..f4640bf7154a35481a1630a1bdb2f5b6dcbf75fc 100644
--- a/chrome/browser/resources/options/content_settings.js
+++ b/chrome/browser/resources/options/content_settings.js
@@ -28,12 +28,6 @@ cr.define('options', function() {
OptionsPage.prototype.initializePage.call(this);
chrome.send('getContentFilterSettings');
- this.showTab($('cookies-nav-tab'));
-
- var self = this;
- $('content-settings-nav-tabs').onclick = function(event) {
- self.showTab(event.srcElement);
- };
// Cookies filter page ---------------------------------------------------
$('cookies-exceptions-button').onclick = function(event) {
@@ -59,25 +53,6 @@ cr.define('options', function() {
options.contentSettings.ExceptionsArea.decorate(
$('imagesExceptionsArea'));
},
-
- /**
- * Shows the tab contents for the given navigation tab.
- * @param {!Element} tab The tab that the user clicked.
- */
- showTab: function(tab) {
- if (!tab.classList.contains('inactive-tab'))
- return;
-
- if (this.activeNavTab != null) {
- this.activeNavTab.classList.remove('active-tab');
- $(this.activeNavTab.getAttribute('tab-contents')).classList.
- remove('active-tab-contents');
- }
-
- tab.classList.add('active-tab');
- $(tab.getAttribute('tab-contents')).classList.add('active-tab-contents');
- this.activeNavTab = tab;
- }
};
/**
« no previous file with comments | « chrome/browser/resources/options/content_settings.html ('k') | chrome/browser/resources/options/import_data_overlay.html » ('j') | no next file with comments »

Powered by Google App Engine