mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-16 02:36:16 +01:00
resolve regression introduced by 1d9c2f49d2
This commit is contained in:
@@ -147,6 +147,7 @@ $(document).ready(function () {
|
|||||||
if (status === 403 || status === 404 || status === 500 || status === 502 || status === 503) {
|
if (status === 403 || status === 404 || status === 500 || status === 502 || status === 503) {
|
||||||
if (status === 502 && retry) {
|
if (status === 502 && retry) {
|
||||||
retry = false;
|
retry = false;
|
||||||
|
ajaxifyTimer = undefined;
|
||||||
return ajaxify.go(url, callback, quiet);
|
return ajaxify.go(url, callback, quiet);
|
||||||
}
|
}
|
||||||
if (status === 502) {
|
if (status === 502) {
|
||||||
@@ -167,6 +168,7 @@ $(document).ready(function () {
|
|||||||
if (data.responseJSON && data.responseJSON.external) {
|
if (data.responseJSON && data.responseJSON.external) {
|
||||||
window.location.href = data.responseJSON.external;
|
window.location.href = data.responseJSON.external;
|
||||||
} else if (typeof data.responseJSON === 'string') {
|
} else if (typeof data.responseJSON === 'string') {
|
||||||
|
ajaxifyTimer = undefined;
|
||||||
ajaxify.go(data.responseJSON.slice(1), callback, quiet);
|
ajaxify.go(data.responseJSON.slice(1), callback, quiet);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user