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

Method initClass

app/views/courses/ManageLicenseModal.js:28–43  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

26module.exports = (ManageLicenseModal = (function () {
27 ManageLicenseModal = class ManageLicenseModal extends ModalView {
28 static initClass () {
29 this.prototype.id = 'manage-license-modal'
30 this.prototype.template = template
31
32 this.prototype.events = {
33 'change input[type="checkbox"][name="user"]': 'updateSelectedStudents',
34 'change .select-all-users-checkbox': 'toggleSelectAllStudents',
35 'change .select-all-users-revoke-checkbox': 'toggleSelectAllStudentsRevoke',
36 'change select.classroom-select': 'replaceStudentList',
37 'submit form': 'onSubmitForm',
38 'click #get-more-licenses-btn': 'onClickGetMoreLicensesButton',
39 'click #selectPrepaidType .radio': 'onSelectPrepaidType',
40 'click .change-tab': 'onChangeTab',
41 'click .revoke-student-button': 'onClickRevokeStudentButton'
42 }
43 }
44
45 getInitialState (options) {
46 let selectedUserModels

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected