| 27 | module.exports = (AuthModal = (function () { |
| 28 | AuthModal = class AuthModal extends ModalView { |
| 29 | static initClass () { |
| 30 | this.prototype.id = 'auth-modal' |
| 31 | this.prototype.template = template |
| 32 | this.prototype.trapsFocus = false // TODO: re-enable this in a way that doesn't break Google login Noty |
| 33 | |
| 34 | this.prototype.events = { |
| 35 | 'click #switch-to-signup-btn': 'onSignupInstead', |
| 36 | 'submit form': 'onSubmitForm', |
| 37 | 'keyup #name': 'onNameChange', |
| 38 | 'click #google-login-button': 'onClickGPlusLoginButton', |
| 39 | 'click #facebook-login-btn': 'onClickFacebookLoginButton', |
| 40 | 'click #clever-signup-btn': 'onClickCleverSignupButton', |
| 41 | 'click #clever-login-btn': 'onClickCleverLoginButton', |
| 42 | 'click #schoology-login-btn': 'onClickSchoologyLoginButton', |
| 43 | 'click #classlink-login-btn': 'onClickClasslinkLoginButton', |
| 44 | 'click #close-modal': 'hide', |
| 45 | 'click [data-toggle="coco-modal"][data-target="core/RecoverModal"]': 'openRecoverModal', |
| 46 | } |
| 47 | } |
| 48 | |
| 49 | // Initialization |
| 50 | |