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

Method onClickLookupCodeButton

app/views/account/PrepaidView.js:163–174  ·  view source on GitHub ↗
(e)

Source from the content-addressed store, hash-verified

161 }
162
163 onClickLookupCodeButton (e) {
164 this.ppc = $('.input-ppc').val()
165 if (!this.ppc) {
166 this.statusMessage('You must enter a code.', 'error')
167 return
168 }
169 this.ppcInfo = []
170 if (typeof this.render === 'function') {
171 this.render()
172 }
173 return this.loadPrepaid(this.dashedPPC())
174 }
175
176 onClickRedeemCodeButton (e) {
177 this.ppc = $('.input-ppc').val()

Callers

nothing calls this directly

Calls 4

statusMessageMethod · 0.95
loadPrepaidMethod · 0.95
dashedPPCMethod · 0.95
renderMethod · 0.45

Tested by

no test coverage detected