mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-02-25 14:41:50 +01:00
Added error message, if ajax request failed
This commit is contained in:
parent
9f7fd714f5
commit
bf7b241b0c
@ -196,7 +196,9 @@ egw_json_request.prototype.sendRequest = function(_async, _callback, _sender)
|
|||||||
data: request_obj,
|
data: request_obj,
|
||||||
dataType: 'json',
|
dataType: 'json',
|
||||||
type: 'POST',
|
type: 'POST',
|
||||||
success: this.handleResponse});
|
success: this.handleResponse,
|
||||||
|
error: function(_xmlhttp,_err) { alert('Ajax request to '+this.url+'?menuaction='+this.menuaction+' failed: '+_err); }
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
egw_json_request.prototype.alertFunc = function(_message, _details)
|
egw_json_request.prototype.alertFunc = function(_message, _details)
|
||||||
|
Loading…
Reference in New Issue
Block a user