Skip to content

Instantly share code, notes, and snippets.

@ericdfields
Created March 2, 2017 21:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ericdfields/14c86f469d8684d8411f347ea8582d98 to your computer and use it in GitHub Desktop.
Save ericdfields/14c86f469d8684d8411f347ea8582d98 to your computer and use it in GitHub Desktop.
ajax
.post( parseHref(this.props) )
.setCsrfToken()
.send( updatedPayload(payload,entity) )
.end( (err,response) => {
if (err) {
return standardError()
}
this.setDisabled()
this.props.callback && this.props.callback()
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment