-
-
Save Quirkylee/8f2cd90dcab1a371bbe85b0ff8e0cc8b to your computer and use it in GitHub Desktop.
try this
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.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