MDL-18014 Atto: Fix for error handling bug on autosave
This commit is contained in:
+1
-1
@@ -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;
|
||||
|
||||
+2
-2
File diff suppressed because one or more lines are too long
+1
-1
@@ -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
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user