MCPcopy Create free account
hub / github.com/codecombat/codecombat / initClass

Method initClass

app/views/core/AuthModal.js:29–47  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

27module.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

Callers 1

AuthModal.jsFile · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected