MDL-47737 editor_atto: Prevent false negative when saving draft on IE9

This commit is contained in:
Frederic Massart 2014-10-17 20:48:43 +08:00
parent 9b4a87f7e6
commit 53cca2274e
4 changed files with 5 additions and 5 deletions

View File

@ -963,7 +963,7 @@ EditorAutosave.prototype = {
error: ajaxErrorFunction,
failure: ajaxErrorFunction,
success: function(code, response) {
if (response.response !== "") {
if (response.responseText !== "") {
Y.soon(Y.bind(ajaxErrorFunction, this, [code, response]));
} else {
// All working.

File diff suppressed because one or more lines are too long

View File

@ -953,7 +953,7 @@ EditorAutosave.prototype = {
error: ajaxErrorFunction,
failure: ajaxErrorFunction,
success: function(code, response) {
if (response.response !== "") {
if (response.responseText !== "") {
Y.soon(Y.bind(ajaxErrorFunction, this, [code, response]));
} else {
// All working.

View File

@ -259,7 +259,7 @@ EditorAutosave.prototype = {
error: ajaxErrorFunction,
failure: ajaxErrorFunction,
success: function(code, response) {
if (response.response !== "") {
if (response.responseText !== "") {
Y.soon(Y.bind(ajaxErrorFunction, this, [code, response]));
} else {
// All working.