[ticket/11279] Log error in console

PHPBB-11279
This commit is contained in:
Vjacheslav Trushkin 2013-05-20 22:12:20 +03:00
parent a9c9448ebb
commit 67053d0b4e

View file

@ -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) {