LEFT | RIGHT |
(no file at all) | |
1 'use strict'; | 1 'use strict'; |
| 2 |
| 3 var spinner; |
2 | 4 |
3 /** | 5 /** |
4 * Provide the main App class, based on the YUI App framework. Also provide | 6 * Provide the main App class, based on the YUI App framework. Also provide |
5 * the routing definitions, which map the request paths to the top-level | 7 * the routing definitions, which map the request paths to the top-level |
6 * views defined by the App class. | 8 * views defined by the App class. |
7 * | 9 * |
8 * @module app | 10 * @module app |
9 */ | 11 */ |
10 | 12 |
11 // Create a global for debug console access to YUI context. | 13 // Create a global for debug console access to YUI context. |
(...skipping 620 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
632 * Hide the login mask and redispatch the router. | 634 * Hide the login mask and redispatch the router. |
633 * | 635 * |
634 * When the environment gets a response from a login attempt, | 636 * When the environment gets a response from a login attempt, |
635 * it fires a login event, to which this responds. | 637 * it fires a login event, to which this responds. |
636 * | 638 * |
637 * @method onLogin | 639 * @method onLogin |
638 * @private | 640 * @private |
639 */ | 641 */ |
640 onLogin: function() { | 642 onLogin: function() { |
641 Y.one('body > #full-screen-mask').hide(); | 643 Y.one('body > #full-screen-mask').hide(); |
| 644 // Stop the animated loading spinner. |
| 645 spinner.stop(); |
642 this.dispatch(); | 646 this.dispatch(); |
643 }, | 647 }, |
644 | 648 |
645 /** | 649 /** |
646 * Display the provider type. | 650 * Display the provider type. |
647 * | 651 * |
648 * The provider type arrives asynchronously. Instead of updating the | 652 * The provider type arrives asynchronously. Instead of updating the |
649 * display from the environment code (a separation of concerns violation), | 653 * display from the environment code (a separation of concerns violation), |
650 * we update it here. | 654 * we update it here. |
651 * | 655 * |
(...skipping 254 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
906 'juju-views', | 910 'juju-views', |
907 'juju-view-login', | 911 'juju-view-login', |
908 'io', | 912 'io', |
909 'json-parse', | 913 'json-parse', |
910 'app-base', | 914 'app-base', |
911 'app-transitions', | 915 'app-transitions', |
912 'base', | 916 'base', |
913 'node', | 917 'node', |
914 'model'] | 918 'model'] |
915 }); | 919 }); |
LEFT | RIGHT |