mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-24 06:24:08 +00:00
Merge "Follow-up I5357a909: Fix logic for autosave from edited state"
This commit is contained in:
commit
1749a5ee41
|
@ -476,7 +476,7 @@ ve.init.mw.ArticleTarget.prototype.surfaceReady = function () {
|
|||
}
|
||||
} else {
|
||||
// ...otherwise store this document state for later recovery
|
||||
if ( !this.fromEditedState ) {
|
||||
if ( this.fromEditedState ) {
|
||||
// Store immediately if the document was previously edited
|
||||
// (e.g. in a different mode)
|
||||
this.storeDocState( this.originalHtml );
|
||||
|
|
Loading…
Reference in a new issue