Skip to content

Instantly share code, notes, and snippets.

@Quirkylee
Created December 2, 2018 00:36
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 Quirkylee/8f2cd90dcab1a371bbe85b0ff8e0cc8b to your computer and use it in GitHub Desktop.
Save Quirkylee/8f2cd90dcab1a371bbe85b0ff8e0cc8b to your computer and use it in GitHub Desktop.
try this
.done(function(data) {
// Whatever data is
if(data.redirect !== undefined) {
window.location = data.redirect;
} else if(data.error !== undefined) {
_error
.text(data.error)
.show();
}
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment