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

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

Issue 5976010: DOMUI Settings: UTH: Section seperators are wrong if the last section is hidden. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 10 years 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
« no previous file with comments | « chrome/browser/dom_ui/options/advanced_options_handler.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 // AdvancedOptions class 10 // AdvancedOptions class
(...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after
244 $('cloudPrintProxyManageButton').style.display = 'none'; 244 $('cloudPrintProxyManageButton').style.display = 'none';
245 } else { 245 } else {
246 $('cloudPrintProxySetupButton').textContent = 246 $('cloudPrintProxySetupButton').textContent =
247 localStrings.getString('cloudPrintProxyEnabledButton'); 247 localStrings.getString('cloudPrintProxyEnabledButton');
248 $('cloudPrintProxyManageButton').style.display = 'inline'; 248 $('cloudPrintProxyManageButton').style.display = 'inline';
249 } 249 }
250 $('cloudPrintProxySetupButton').disabled = false; 250 $('cloudPrintProxySetupButton').disabled = false;
251 } 251 }
252 }; 252 };
253 253
254 AdvancedOptions.HideCloudPrintProxySection = function() { 254 AdvancedOptions.RemoveCloudPrintProxySection = function() {
255 if (!cr.isChromeOS) { 255 if (!cr.isChromeOS) {
256 $('cloud-print-proxy-section').style.display = 'none'; 256 var proxySectionElm = $('cloud-print-proxy-section');
257 proxySectionElm.parentNode.removeChild(proxySectionElm);
257 } 258 }
258 }; 259 };
259 260
260 // Export 261 // Export
261 return { 262 return {
262 AdvancedOptions: AdvancedOptions 263 AdvancedOptions: AdvancedOptions
263 }; 264 };
264 265
265 }); 266 });
OLDNEW
« no previous file with comments | « chrome/browser/dom_ui/options/advanced_options_handler.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698