| OLD | NEW |
| 1 /* Copyright 2015 The Chromium Authors. All rights reserved. | 1 /* Copyright 2015 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 Polymer('offline-gaia', (function() { | 6 Polymer('offline-gaia', (function() { |
| 7 return { | 7 return { |
| 8 onTransitionEnd: function() { | 8 onTransitionEnd: function() { |
| 9 this.focus(); | 9 this.focus(); |
| 10 }, | 10 }, |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 68 } | 68 } |
| 69 }, | 69 }, |
| 70 | 70 |
| 71 onBack: function() { | 71 onBack: function() { |
| 72 this.switchToEmailCard(); | 72 this.switchToEmailCard(); |
| 73 }, | 73 }, |
| 74 | 74 |
| 75 switchToEmailCard() { | 75 switchToEmailCard() { |
| 76 this.$.passwordInput.inputValue = ''; | 76 this.$.passwordInput.inputValue = ''; |
| 77 this.$.passwordInput.setValid(true); | 77 this.$.passwordInput.setValid(true); |
| 78 this.$.emailInput.setValid(true); |
| 78 this.$.backButton.hidden = true; | 79 this.$.backButton.hidden = true; |
| 79 this.$.animatedPages.selected = 0; | 80 this.$.animatedPages.selected = 0; |
| 80 }, | 81 }, |
| 81 | 82 |
| 82 switchToPasswordCard(email) { | 83 switchToPasswordCard(email) { |
| 83 this.$.emailInput.inputValue = email; | 84 this.$.emailInput.inputValue = email; |
| 84 this.$.passwordHeader.email = email; | 85 this.$.passwordHeader.email = email; |
| 85 this.$.backButton.hidden = false; | 86 this.$.backButton.hidden = false; |
| 86 this.$.animatedPages.selected = 1; | 87 this.$.animatedPages.selected = 1; |
| 87 } | 88 } |
| 88 }; | 89 }; |
| 89 })()); | 90 })()); |
| OLD | NEW |