| OLD | NEW |
| 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 Loading... |
| 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 }); |
| OLD | NEW |