| 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 // ProxyOptions class: | 10 // ProxyOptions class: |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 84 } | 84 } |
| 85 }, | 85 }, |
| 86 | 86 |
| 87 /** | 87 /** |
| 88 * Handler for selecting a radio button that will disable the manual | 88 * Handler for selecting a radio button that will disable the manual |
| 89 * controls. | 89 * controls. |
| 90 * @private | 90 * @private |
| 91 * @param {Event} e Click event. | 91 * @param {Event} e Click event. |
| 92 */ | 92 */ |
| 93 disableManual_: function(e) { | 93 disableManual_: function(e) { |
| 94 $('proxyAllProtocols').disabled = true; |
| 94 $('proxyHostName').disabled = true; | 95 $('proxyHostName').disabled = true; |
| 95 $('proxyHostPort').disabled = true; | 96 $('proxyHostPort').disabled = true; |
| 96 $('proxyHostSingleName').disabled = true; | 97 $('proxyHostSingleName').disabled = true; |
| 97 $('proxyHostSinglePort').disabled = true; | 98 $('proxyHostSinglePort').disabled = true; |
| 98 $('secureProxyHostName').disabled = true; | 99 $('secureProxyHostName').disabled = true; |
| 99 $('secureProxyPort').disabled = true; | 100 $('secureProxyPort').disabled = true; |
| 100 $('ftpProxy').disabled = true; | 101 $('ftpProxy').disabled = true; |
| 101 $('ftpProxyPort').disabled = true; | 102 $('ftpProxyPort').disabled = true; |
| 102 $('socksHost').disabled = true; | 103 $('socksHost').disabled = true; |
| 103 $('socksPort').disabled = true; | 104 $('socksPort').disabled = true; |
| 104 $('newHost').disabled = true; | 105 $('newHost').disabled = true; |
| 105 $('removeHost').disabled = true; | 106 $('removeHost').disabled = true; |
| 106 $('addHost').disabled = true; | 107 $('addHost').disabled = true; |
| 107 $('advancedConfig').style.display = 'none'; | 108 $('advancedConfig').style.display = 'none'; |
| 108 }, | 109 }, |
| 109 | 110 |
| 110 /** | 111 /** |
| 111 * Handler for selecting a radio button that will enable the manual | 112 * Handler for selecting a radio button that will enable the manual |
| 112 * controls. | 113 * controls. |
| 113 * @private | 114 * @private |
| 114 * @param {Event} e Click event. | 115 * @param {Event} e Click event. |
| 115 */ | 116 */ |
| 116 enableManual_: function(e) { | 117 enableManual_: function(e) { |
| 118 $('proxyAllProtocols').disabled = false; |
| 117 $('proxyHostName').disabled = false; | 119 $('proxyHostName').disabled = false; |
| 118 $('proxyHostPort').disabled = false; | 120 $('proxyHostPort').disabled = false; |
| 119 $('proxyHostSingleName').disabled = false; | 121 $('proxyHostSingleName').disabled = false; |
| 120 $('proxyHostSinglePort').disabled = false; | 122 $('proxyHostSinglePort').disabled = false; |
| 121 $('secureProxyHostName').disabled = false; | 123 $('secureProxyHostName').disabled = false; |
| 122 $('secureProxyPort').disabled = false; | 124 $('secureProxyPort').disabled = false; |
| 123 $('ftpProxy').disabled = false; | 125 $('ftpProxy').disabled = false; |
| 124 $('ftpProxyPort').disabled = false; | 126 $('ftpProxyPort').disabled = false; |
| 125 $('socksHost').disabled = false; | 127 $('socksHost').disabled = false; |
| 126 $('socksPort').disabled = false; | 128 $('socksPort').disabled = false; |
| (...skipping 25 matching lines...) Expand all Loading... |
| 152 } | 154 } |
| 153 } | 155 } |
| 154 }; | 156 }; |
| 155 | 157 |
| 156 // Export | 158 // Export |
| 157 return { | 159 return { |
| 158 ProxyOptions: ProxyOptions | 160 ProxyOptions: ProxyOptions |
| 159 }; | 161 }; |
| 160 | 162 |
| 161 }); | 163 }); |
| OLD | NEW |