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 Legacy supervised user creation flow screen. | 6 * @fileoverview Legacy supervised user creation flow screen. |
7 */ | 7 */ |
8 | 8 |
9 login.createScreen('SupervisedUserCreationScreen', | 9 login.createScreen('SupervisedUserCreationScreen', |
10 'supervised-user-creation', function() { | 10 'supervised-user-creation', function() { |
(...skipping 598 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
609 this.getScreenElement('flip-photo').addEventListener( | 609 this.getScreenElement('flip-photo').addEventListener( |
610 'click', this.handleFlipPhoto_.bind(this)); | 610 'click', this.handleFlipPhoto_.bind(this)); |
611 this.getScreenElement('image-stream-crop').addEventListener( | 611 this.getScreenElement('image-stream-crop').addEventListener( |
612 'webkitTransitionEnd', function(e) { | 612 'webkitTransitionEnd', function(e) { |
613 previewElement.classList.remove('animation'); | 613 previewElement.classList.remove('animation'); |
614 }); | 614 }); |
615 this.getScreenElement('image-preview-img').addEventListener( | 615 this.getScreenElement('image-preview-img').addEventListener( |
616 'webkitTransitionEnd', function(e) { | 616 'webkitTransitionEnd', function(e) { |
617 previewElement.classList.remove('animation'); | 617 previewElement.classList.remove('animation'); |
618 }); | 618 }); |
619 | |
620 $('supervised-user-creation-close-button-item').addEventListener( | |
621 'mousedown', function(e) { | |
622 e.preventDefault(); | |
dzhioev (left Google)
2015/05/15 02:35:20
This trick is not needed for "gaia-icon-button" as
achuithb
2015/05/15 22:10:14
Done.
| |
623 }); | |
624 | |
625 $('supervised-user-creation-close-button-item').addEventListener( | |
626 'click', function(e) { | |
627 this.cancel(); | |
628 e.preventDefault(); | |
629 }.bind(this)); | |
619 }, | 630 }, |
620 | 631 |
621 buttonIds: [], | 632 buttonIds: [], |
622 | 633 |
623 /** | 634 /** |
624 * Creates button for adding to controls. | 635 * Creates button for adding to controls. |
625 * @param {string} buttonId -- id for button, have to be unique within | 636 * @param {string} buttonId -- id for button, have to be unique within |
626 * screen. Actual id will be prefixed with screen name and appended with | 637 * screen. Actual id will be prefixed with screen name and appended with |
627 * '-button'. Use getScreenButton(buttonId) to find it later. | 638 * '-button'. Use getScreenButton(buttonId) to find it later. |
628 * @param {string} i18nPrefix -- screen prefix for i18n values. | 639 * @param {string} i18nPrefix -- screen prefix for i18n values. |
(...skipping 957 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1586 | 1597 |
1587 if (selectedIndex >= 0) | 1598 if (selectedIndex >= 0) |
1588 this.importList_.selectPod(this.importList_.pods[selectedIndex]); | 1599 this.importList_.selectPod(this.importList_.pods[selectedIndex]); |
1589 | 1600 |
1590 if (this.currentPage_ == 'username') | 1601 if (this.currentPage_ == 'username') |
1591 this.getScreenElement('import-link').hidden = (userList.length == 0); | 1602 this.getScreenElement('import-link').hidden = (userList.length == 0); |
1592 }, | 1603 }, |
1593 }; | 1604 }; |
1594 }); | 1605 }); |
1595 | 1606 |
OLD | NEW |