Merge branch 'MDL-47736_master_fix' of git://github.com/markn86/moodle

This commit is contained in:
Marina Glancy 2014-10-21 14:34:05 +08:00
commit fb32a64efc
4 changed files with 8 additions and 5 deletions

View File

@ -850,7 +850,8 @@ EditorAutosave.prototype = {
response_json = JSON.parse(o.responseText);
// Revert untouched editor contents to an empty string.
if (response_json.result === '<p></p>' || response_json.result === '<p><br></p>') {
if (response_json.result === '<p></p>' || response_json.result === '<p><br></p>' ||
response_json.result === '<br>') {
response_json.result = '';
}

File diff suppressed because one or more lines are too long

View File

@ -845,7 +845,8 @@ EditorAutosave.prototype = {
response_json = JSON.parse(o.responseText);
// Revert untouched editor contents to an empty string.
if (response_json.result === '<p></p>' || response_json.result === '<p><br></p>') {
if (response_json.result === '<p></p>' || response_json.result === '<p><br></p>' ||
response_json.result === '<br>') {
response_json.result = '';
}

View File

@ -146,7 +146,8 @@ EditorAutosave.prototype = {
response_json = JSON.parse(o.responseText);
// Revert untouched editor contents to an empty string.
if (response_json.result === '<p></p>' || response_json.result === '<p><br></p>') {
if (response_json.result === '<p></p>' || response_json.result === '<p><br></p>' ||
response_json.result === '<br>') {
response_json.result = '';
}