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

This commit is contained in:
Damyon Wiese 2014-08-05 17:01:07 +08:00
parent f1018cd615
commit e7a8977ef4
4 changed files with 5 additions and 5 deletions

View File

@ -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

View File

@ -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;

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;