| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 <include src="../uber/uber_utils.js"> | 5 <include src="../uber/uber_utils.js"> |
| 6 | 6 |
| 7 cr.define('help', function() { | 7 cr.define('help', function() { |
| 8 /** | 8 /** |
| 9 * Encapsulated handling of the help page. | 9 * Encapsulated handling of the help page. |
| 10 */ | 10 */ |
| (...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 147 $('promote').hidden = false; | 147 $('promote').hidden = false; |
| 148 } else if (state == 'disabled') { | 148 } else if (state == 'disabled') { |
| 149 $('promote').disabled = true; | 149 $('promote').disabled = true; |
| 150 $('promote').hidden = false; | 150 $('promote').hidden = false; |
| 151 } | 151 } |
| 152 }, | 152 }, |
| 153 | 153 |
| 154 /** | 154 /** |
| 155 * @private | 155 * @private |
| 156 */ | 156 */ |
| 157 setObsoleteOS_: function(obsolete) { | |
| 158 if (cr.isMac) { | |
| 159 var updateObsoleteOSContainer = $('update-obsolete-os-container'); | |
| 160 if (updateObsoleteOSContainer) { | |
| 161 updateObsoleteOSContainer.hidden = !obsolete; | |
| 162 } | |
| 163 } | |
| 164 }, | |
| 165 | |
| 166 /** | |
| 167 * @private | |
| 168 */ | |
| 169 setOSVersion_: function(version) { | 157 setOSVersion_: function(version) { |
| 170 if (!cr.isChromeOS) | 158 if (!cr.isChromeOS) |
| 171 console.error('OS version unsupported on non-CrOS'); | 159 console.error('OS version unsupported on non-CrOS'); |
| 172 | 160 |
| 173 $('os-version').parentNode.hidden = (version == ''); | 161 $('os-version').parentNode.hidden = (version == ''); |
| 174 $('os-version').textContent = version; | 162 $('os-version').textContent = version; |
| 175 }, | 163 }, |
| 176 | 164 |
| 177 /** | 165 /** |
| 178 * @private | 166 * @private |
| (...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 289 HelpPage: HelpPage | 277 HelpPage: HelpPage |
| 290 }; | 278 }; |
| 291 }); | 279 }); |
| 292 | 280 |
| 293 /** | 281 /** |
| 294 * onload listener to initialize the HelpPage. | 282 * onload listener to initialize the HelpPage. |
| 295 */ | 283 */ |
| 296 window.onload = function() { | 284 window.onload = function() { |
| 297 help.HelpPage.getInstance().initialize(); | 285 help.HelpPage.getInstance().initialize(); |
| 298 }; | 286 }; |
| OLD | NEW |