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

Method onAgree

app/views/CLAView.js:32–41  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

30 }
31
32 onAgree () {
33 this.$el.find('#agreement-button').prop('disabled', true).text('Saving')
34 return $.ajax({
35 url: '/db/user/me/agreeToCLA',
36 data: { githubUsername: this.$el.find('#github-username').val() },
37 method: 'POST',
38 success: this.onAgreeSucceeded,
39 error: this.onAgreeFailed
40 })
41 }
42
43 onAgreeSucceeded () {
44 return this.$el.find('#agreement-button').text('Success')

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected