Created
August 21, 2018 11:41
-
-
Save PavloConan/7801890a54af1f4de551706d2505e4a5 to your computer and use it in GitHub Desktop.
This file contains 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
$.ajax({ | |
dataType: 'json', | |
type: 'POST', | |
url: Routes.call_to_api1_path(), | |
success: function() { | |
$.ajax({ | |
dataType: 'json', | |
type: 'POST', | |
url: Routes.call_to_api2_path(), | |
success: function() { | |
redirect() | |
} | |
}) | |
} | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment