OLD | NEW |
---|---|
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 /** | 5 /** |
6 * This view displays information on ChromeOS specific features. | 6 * This view displays information on ChromeOS specific features. |
7 */ | 7 */ |
8 var CrosView = (function() { | 8 var CrosView = (function() { |
9 'use strict'; | 9 'use strict'; |
10 | 10 |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
65 } | 65 } |
66 | 66 |
67 /** | 67 /** |
68 * Set ONC file parse status. | 68 * Set ONC file parse status. |
69 * | 69 * |
70 * @private | 70 * @private |
71 */ | 71 */ |
72 function setParseStatus_(success) { | 72 function setParseStatus_(success) { |
73 var parseStatus = $(CrosView.PARSE_STATUS_ID); | 73 var parseStatus = $(CrosView.PARSE_STATUS_ID); |
74 parseStatus.hidden = false; | 74 parseStatus.hidden = false; |
75 parseStatus.textContent = status ? | 75 parseStatus.textContent = success ? |
achuithb
2011/12/08 19:34:17
oops! Thanks for fixing this. Sorry about the trou
| |
76 "ONC file successfully parsed" : "ONC file parse failed"; | 76 "ONC file successfully parsed" : "ONC file parse failed"; |
77 reset_(); | 77 reset_(); |
78 } | 78 } |
79 | 79 |
80 /** | 80 /** |
81 * Add event listeners for the file selection and passcode input fields. | 81 * Add event listeners for the file selection and passcode input fields. |
82 * | 82 * |
83 * @private | 83 * @private |
84 */ | 84 */ |
85 function addEventListeners_() { | 85 function addEventListeners_() { |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
136 | 136 |
137 CrosView.prototype = { | 137 CrosView.prototype = { |
138 // Inherit from DivView. | 138 // Inherit from DivView. |
139 __proto__: DivView.prototype, | 139 __proto__: DivView.prototype, |
140 | 140 |
141 onONCFileParse: setParseStatus_, | 141 onONCFileParse: setParseStatus_, |
142 }; | 142 }; |
143 | 143 |
144 return CrosView; | 144 return CrosView; |
145 })(); | 145 })(); |
OLD | NEW |