MDL-18014 Atto: Fix for error handling bug on autosave

This commit is contained in:
Damyon Wiese
2014-08-14 12:43:47 +08:00
parent f1018cd615
commit e7a8977ef4
4 changed files with 5 additions and 5 deletions
@@ -928,7 +928,7 @@ EditorAutosave.prototype = {
failure: ajaxErrorFunction,
success: function(code, response) {
if (response.response !== "") {
ajaxErrorFunction(code, response);
Y.soon(Y.bind(ajaxErrorFunction, this, [code, response]));
} else {
// All working.
this.lastText = newText;
File diff suppressed because one or more lines are too long
@@ -919,7 +919,7 @@ EditorAutosave.prototype = {
failure: ajaxErrorFunction,
success: function(code, response) {
if (response.response !== "") {
ajaxErrorFunction(code, response);
Y.soon(Y.bind(ajaxErrorFunction, this, [code, response]));
} else {
// All working.
this.lastText = newText;
+1 -1
View File
@@ -224,7 +224,7 @@ EditorAutosave.prototype = {
failure: ajaxErrorFunction,
success: function(code, response) {
if (response.response !== "") {
ajaxErrorFunction(code, response);
Y.soon(Y.bind(ajaxErrorFunction, this, [code, response]));
} else {
// All working.
this.lastText = newText;