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

Side by Side Diff: chrome/browser/resources/options/content_settings.js

Issue 7067036: Options: Remove the hidden class, since we override the hidden attribute to set (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 7 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 cr.define('options', function() { 5 cr.define('options', function() {
6 6
7 var OptionsPage = options.OptionsPage; 7 var OptionsPage = options.OptionsPage;
8 8
9 ////////////////////////////////////////////////////////////////////////////// 9 //////////////////////////////////////////////////////////////////////////////
10 // ContentSettings class: 10 // ContentSettings class:
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 ' list[mode=normal]'); 92 ' list[mode=normal]');
93 93
94 exceptionsList.setExceptions(list); 94 exceptionsList.setExceptions(list);
95 }; 95 };
96 96
97 ContentSettings.setOTRExceptions = function(type, list) { 97 ContentSettings.setOTRExceptions = function(type, list) {
98 var exceptionsList = 98 var exceptionsList =
99 document.querySelector('div[contentType=' + type + ']' + 99 document.querySelector('div[contentType=' + type + ']' +
100 ' list[mode=otr]'); 100 ' list[mode=otr]');
101 101
102 exceptionsList.parentNode.classList.remove('hidden'); 102 exceptionsList.parentNode.hidden = false;
103 exceptionsList.setExceptions(list); 103 exceptionsList.setExceptions(list);
104 }; 104 };
105 105
106 /** 106 /**
107 * Sets the initial value for the Third Party Cookies checkbox. 107 * Sets the initial value for the Third Party Cookies checkbox.
108 * @param {boolean=} block True if we are blocking third party cookies. 108 * @param {boolean=} block True if we are blocking third party cookies.
109 */ 109 */
110 ContentSettings.setBlockThirdPartyCookies = function(block) { 110 ContentSettings.setBlockThirdPartyCookies = function(block) {
111 $('block-third-party-cookies').checked = block; 111 $('block-third-party-cookies').checked = block;
112 }; 112 };
(...skipping 14 matching lines...) Expand all
127 'list[mode=' + mode + ']'); 127 'list[mode=' + mode + ']');
128 exceptionsList.patternValidityCheckComplete(pattern, valid); 128 exceptionsList.patternValidityCheckComplete(pattern, valid);
129 }; 129 };
130 130
131 // Export 131 // Export
132 return { 132 return {
133 ContentSettings: ContentSettings 133 ContentSettings: ContentSettings
134 }; 134 };
135 135
136 }); 136 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698