mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-28 08:10:35 +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 {
|
} else {
|
||||||
// ...otherwise store this document state for later recovery
|
// ...otherwise store this document state for later recovery
|
||||||
if ( !this.fromEditedState ) {
|
if ( this.fromEditedState ) {
|
||||||
// Store immediately if the document was previously edited
|
// Store immediately if the document was previously edited
|
||||||
// (e.g. in a different mode)
|
// (e.g. in a different mode)
|
||||||
this.storeDocState( this.originalHtml );
|
this.storeDocState( this.originalHtml );
|
||||||
|
|
Loading…
Reference in a new issue