mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-21 13:54:02 -07:00
feat: Add console log for ajax actions when explain cookie is set (#1940)
This commit is contained in:
parent
28e38aa781
commit
345dd1bc20
2 changed files with 8 additions and 1 deletions
|
@ -343,12 +343,14 @@ Ajax.prototype = {
|
|||
}
|
||||
} else if (response.error_code) {
|
||||
ajax.showErrorMsg(response.error_msg);
|
||||
console.log(response.console_log);
|
||||
$('.loading-1').removeClass('loading-1').html('error');
|
||||
} else {
|
||||
ajax.callback[action](response);
|
||||
ajax.clearActionState(action);
|
||||
}
|
||||
if (response.console_log) {
|
||||
console.log(response.console_log);
|
||||
}
|
||||
},
|
||||
|
||||
error: function (xml, desc) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue