mirror of
https://github.com/moodle/moodle.git
synced 2025-08-08 02:16:41 +02:00
Merge branch 'MDL-47736_master_fix' of git://github.com/markn86/moodle
This commit is contained in:
commit
fb32a64efc
4 changed files with 8 additions and 5 deletions
|
@ -850,7 +850,8 @@ EditorAutosave.prototype = {
|
||||||
response_json = JSON.parse(o.responseText);
|
response_json = JSON.parse(o.responseText);
|
||||||
|
|
||||||
// Revert untouched editor contents to an empty string.
|
// 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 = '';
|
response_json.result = '';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -845,7 +845,8 @@ EditorAutosave.prototype = {
|
||||||
response_json = JSON.parse(o.responseText);
|
response_json = JSON.parse(o.responseText);
|
||||||
|
|
||||||
// Revert untouched editor contents to an empty string.
|
// 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 = '';
|
response_json.result = '';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -146,7 +146,8 @@ EditorAutosave.prototype = {
|
||||||
response_json = JSON.parse(o.responseText);
|
response_json = JSON.parse(o.responseText);
|
||||||
|
|
||||||
// Revert untouched editor contents to an empty string.
|
// 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 = '';
|
response_json.result = '';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue