OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 User pod row implementation. | 6 * @fileoverview User pod row implementation. |
7 */ | 7 */ |
8 | 8 |
9 cr.define('login', function() { | 9 cr.define('login', function() { |
10 /** | 10 /** |
(...skipping 1424 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1435 }, | 1435 }, |
1436 | 1436 |
1437 /** | 1437 /** |
1438 * Resets the input field and updates the tab order of pod controls. | 1438 * Resets the input field and updates the tab order of pod controls. |
1439 * @param {boolean} takeFocus If true, input field takes focus. | 1439 * @param {boolean} takeFocus If true, input field takes focus. |
1440 */ | 1440 */ |
1441 reset: function(takeFocus) { | 1441 reset: function(takeFocus) { |
1442 this.passwordElement.value = ''; | 1442 this.passwordElement.value = ''; |
1443 if (this.pinKeyboard) | 1443 if (this.pinKeyboard) |
1444 this.pinKeyboard.value = ''; | 1444 this.pinKeyboard.value = ''; |
| 1445 this.updateInput_(); |
1445 this.classList.toggle('signing-in', false); | 1446 this.classList.toggle('signing-in', false); |
1446 if (takeFocus) { | 1447 if (takeFocus) { |
1447 if (!this.multiProfilesPolicyApplied) | 1448 if (!this.multiProfilesPolicyApplied) |
1448 this.focusInput(); // This will set a custom tab order. | 1449 this.focusInput(); // This will set a custom tab order. |
1449 } | 1450 } |
1450 else | 1451 else |
1451 this.resetTabOrder(); | 1452 this.resetTabOrder(); |
1452 }, | 1453 }, |
1453 | 1454 |
1454 /** | 1455 /** |
(...skipping 2195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3650 if (pod && pod.multiProfilesPolicyApplied) { | 3651 if (pod && pod.multiProfilesPolicyApplied) { |
3651 pod.userTypeBubbleElement.classList.remove('bubble-shown'); | 3652 pod.userTypeBubbleElement.classList.remove('bubble-shown'); |
3652 } | 3653 } |
3653 } | 3654 } |
3654 }; | 3655 }; |
3655 | 3656 |
3656 return { | 3657 return { |
3657 PodRow: PodRow | 3658 PodRow: PodRow |
3658 }; | 3659 }; |
3659 }); | 3660 }); |
OLD | NEW |