mirror of
https://github.com/moodle/moodle.git
synced 2025-03-14 20:50:21 +01:00
MDL-18014 Atto: Fix for error handling bug on autosave
This commit is contained in:
parent
f1018cd615
commit
e7a8977ef4
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user