1
0
mirror of https://github.com/moparisthebest/mail synced 2024-11-23 01:12:19 -05:00

[WO-265] handle offline mode in rest dao

This commit is contained in:
Tankred Hase 2014-03-11 17:39:56 +01:00
parent 45e6b7834a
commit f4d89b3a49

View File

@ -66,9 +66,10 @@ define(function(require) {
});
};
xhr.onerror = function(e) {
xhr.onerror = function() {
callback({
errMsg: 'Error: ' + e.error
code: 404,
errMsg: 'Error calling GET on ' + options.uri
});
};
@ -97,9 +98,9 @@ define(function(require) {
});
};
xhr.onerror = function(e) {
xhr.onerror = function() {
callback({
errMsg: 'Error: ' + e.error
errMsg: 'Error calling PUT on ' + uri
});
};
@ -127,9 +128,9 @@ define(function(require) {
});
};
xhr.onerror = function(e) {
xhr.onerror = function() {
callback({
errMsg: 'Error: ' + e.error
errMsg: 'Error calling DELETE on ' + uri
});
};