MCPcopy Index your code
hub / github.com/codecombat/codecombat / onSubmitEspionageForm

Method onSubmitEspionageForm

app/views/admin/MainAdminView.js:157–170  ·  view source on GitHub ↗
(e)

Source from the content-addressed store, hash-verified

155 }
156
157 onSubmitEspionageForm (e) {
158 e.preventDefault()
159 const button = this.$('#enter-espionage-mode')
160 const userNameOrEmail = this.$el.find('#espionage-name-or-email').val().toLowerCase().trim()
161 forms.disableSubmit(button)
162 this.clearQueryParams()
163 return me.spy(userNameOrEmail, {
164 success () { return window.location.reload() },
165 error () {
166 forms.enableSubmit(button)
167 return errors.showNotyNetworkError(...arguments)
168 }
169 })
170 }
171
172 onClickUserSpyButton (e) {
173 e.stopPropagation()

Callers

nothing calls this directly

Calls 2

clearQueryParamsMethod · 0.95
spyMethod · 0.80

Tested by

no test coverage detected