Added ability to debug ajax_die() calls (#1023)

This commit is contained in:
Roman Kelesidis 2023-11-03 17:33:57 +07:00 committed by GitHub
commit f2fe7d2e0c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 41 additions and 6 deletions

View file

@ -343,6 +343,7 @@ 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);