diff options
Diffstat (limited to 'public')
-rw-r--r-- | public/js/history.js | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/public/js/history.js b/public/js/history.js index c974612b..f9ce2267 100644 --- a/public/js/history.js +++ b/public/js/history.js @@ -165,8 +165,8 @@ function writeHistoryToServer(view) { var newnotehistory = generateHistory(view, notehistory); saveHistoryToServer(newnotehistory); }) - .fail(function () { - writeHistoryToStorage(view); + .fail(function (xhr, status, error) { + console.error(xhr.responseText); }); } @@ -286,8 +286,8 @@ function getServerHistory(callback) { callback(data.history); } }) - .fail(function () { - getStorageHistory(callback); + .fail(function (xhr, status, error) { + console.error(xhr.responseText); }); } @@ -327,8 +327,8 @@ function parseServerToHistory(list, callback) { parseToHistory(list, data.history, callback); } }) - .fail(function () { - parseStorageToHistory(list, callback); + .fail(function (xhr, status, error) { + console.error(xhr.responseText); }); } |