responseJSON is undefined on 502

v1.18.x
Barış Soner Uşaklı 9 years ago
parent 41bd65e81a
commit cf681721d5

@ -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;

Loading…
Cancel
Save