As per documentation, option-based redirect should only occur on successful AJAX requests (pushing a redirect from the server still works)

This commit is contained in:
Sam Georges 2014-09-10 17:03:36 +10:00
parent 44cff23009
commit 7ea65608a0

View File

@ -109,6 +109,8 @@ if (window.jQuery === undefined)
*/
if (jqXHR.status == 406 && jqXHR.responseJSON) {
errorMsg = jqXHR.responseJSON['X_OCTOBER_ERROR_MESSAGE']
isRedirect = false
options.redirect = null
updatePromise = requestOptions.handleUpdateResponse(jqXHR.responseJSON, textStatus, jqXHR)
}
/*