mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-17 19:21:04 +01:00
responseJSON is undefined on 502
This commit is contained in:
@@ -119,8 +119,9 @@ $(document).ready(function() {
|
|||||||
if (data.responseJSON) {
|
if (data.responseJSON) {
|
||||||
data.responseJSON.config = config;
|
data.responseJSON.config = config;
|
||||||
}
|
}
|
||||||
|
|
||||||
$('#footer, #content').removeClass('hide').addClass('ajaxifying');
|
$('#footer, #content').removeClass('hide').addClass('ajaxifying');
|
||||||
return renderTemplate(url, status.toString(), data.responseJSON, callback);
|
return renderTemplate(url, status.toString(), data.responseJSON || {}, callback);
|
||||||
} else if (status === 401) {
|
} else if (status === 401) {
|
||||||
app.alertError('[[global:please_log_in]]');
|
app.alertError('[[global:please_log_in]]');
|
||||||
app.previousUrl = url;
|
app.previousUrl = url;
|
||||||
|
|||||||
Reference in New Issue
Block a user