Send ajax errors to console.error instead of alert

This commit is contained in:
Nathan Gray 2011-05-10 14:49:25 +00:00
parent a63bcaa4d3
commit 19dd8d19bd

View File

@ -268,7 +268,7 @@ egw_json_request.prototype.sendRequest = function(_async, _callback, _sender)
dataType: 'json',
type: 'POST',
success: this.handleResponse,
error: function(_xmlhttp,_err) { alert('Ajax request to ' + this.url + ' failed: ' + _err); }
error: function(_xmlhttp,_err) { window.console.error('Ajax request to ' + this.url + ' failed: ' + _err); }
});
}