Skip to content

Commit

Permalink
Merge branch 'MDL-48006-master' of git://github.com/damyon/moodle
Browse files Browse the repository at this point in the history
  • Loading branch information
marinaglancy committed Nov 4, 2014
2 parents 990ebf0 + c942fdd commit 1d91558
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 5 deletions.
Expand Up @@ -864,7 +864,8 @@ EditorAutosave.prototype = {
if (response_json.error || typeof response_json.result === 'undefined') {
Y.log('Error occurred recovering draft text: ' + response_json.error, 'debug', LOGNAME_AUTOSAVE);
this.showMessage(M.util.get_string('errortextrecovery', 'editor_atto'), NOTIFY_WARNING, RECOVER_MESSAGE_TIMEOUT);
} else if (response_json.result !== this.textarea.get('value')) {
} else if (response_json.result !== this.textarea.get('value') &&
response_json.result !== '') {
Y.log('Autosave text found - recover it.', 'debug', LOGNAME_AUTOSAVE);
this.recoverText(response_json.result);
}
Expand Down

0 comments on commit 1d91558

Please sign in to comment.