mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-15 10:16:12 +01:00
@@ -293,11 +293,21 @@ $(document).ready(function () {
|
||||
headers: {
|
||||
'X-Return-To': app.previousUrl,
|
||||
},
|
||||
success: function (data) {
|
||||
success: function (data, textStatus, xhr) {
|
||||
if (!data) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (xhr.getResponseHeader('X-Redirect')) {
|
||||
return callback({
|
||||
data: {
|
||||
status: 302,
|
||||
responseJSON: data,
|
||||
},
|
||||
textStatus: 'error',
|
||||
});
|
||||
}
|
||||
|
||||
ajaxify.data = data;
|
||||
data.config = config;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user