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

Side by Side Diff: chrome/browser/resources/chromeos/login/oobe_screen_reset.js

Issue 245013002: Fix for help-app article link on OOBE reset screen. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix Created 6 years, 8 months 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 | « no previous file | 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) 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 /** 5 /**
6 * @fileoverview Device reset screen implementation. 6 * @fileoverview Device reset screen implementation.
7 */ 7 */
8 8
9 login.createScreen('ResetScreen', 'reset', function() { 9 login.createScreen('ResetScreen', 'reset', function() {
10 return { 10 return {
11 /** @override */ 11 /** @override */
12 decorate: function() { 12 decorate: function() {
13 $('reset-powerwash-help-link-on-rollback').addEventListener( 13 $('reset-powerwash-help-link-on-rollback').addEventListener(
14 'click', function(event) { 14 'click', function(event) {
15 chrome.send('resetOnLearnMore'); 15 chrome.send('resetOnLearnMore');
16 }); 16 });
17 $('powerwash-help-link').addEventListener(
18 'click', function(event) {
19 chrome.send('resetOnLearnMore');
20 });
17 }, 21 },
18 22
19 /** 23 /**
20 * Header text of the screen. 24 * Header text of the screen.
21 * @type {string} 25 * @type {string}
22 */ 26 */
23 get header() { 27 get header() {
24 return loadTimeData.getString('resetScreenTitle'); 28 return loadTimeData.getString('resetScreenTitle');
25 }, 29 },
26 30
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 * Sets rollback availability for the screen. 137 * Sets rollback availability for the screen.
134 * @param {bool} can_rollback. If Rollback is available on reset screen. 138 * @param {bool} can_rollback. If Rollback is available on reset screen.
135 * @private 139 * @private
136 */ 140 */
137 setRollbackAvailable_: function(show_rollback) { 141 setRollbackAvailable_: function(show_rollback) {
138 this.classList.toggle('norollback', !show_rollback); 142 this.classList.toggle('norollback', !show_rollback);
139 this.showRollback = show_rollback; 143 this.showRollback = show_rollback;
140 }, 144 },
141 }; 145 };
142 }); 146 });
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698