mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-21 18:44:37 +02:00
[ticket/11279] Log error in console
PHPBB-11279
This commit is contained in:
@ -256,6 +256,9 @@ phpbb.ajaxify = function(options) {
|
|||||||
* Handler for AJAX errors
|
* Handler for AJAX errors
|
||||||
*/
|
*/
|
||||||
function errorHandler(jqXHR, textStatus, errorThrown) {
|
function errorHandler(jqXHR, textStatus, errorThrown) {
|
||||||
|
if (console && console.log) {
|
||||||
|
console.log('AJAX error. status: ' + textStatus + ', message: ' + errorThrown);
|
||||||
|
}
|
||||||
phpbb.clearLoadingTimeout();
|
phpbb.clearLoadingTimeout();
|
||||||
var errorText = false;
|
var errorText = false;
|
||||||
if (typeof errorThrown === 'string' && errorThrown.length > 0) {
|
if (typeof errorThrown === 'string' && errorThrown.length > 0) {
|
||||||
|
Reference in New Issue
Block a user