mediawiki-extensions-Visual.../modules/ve-mw/init/targets
Adam Wight c0ad11b960 Purge autosave before submitting merged content
When using TwoColConflict with VisualEditor, the autosave buffer wouldn't
be cleared after saving the successful merge.  This would cause a user to
see a "restore changes?" prompt the next time they entered the editor,
with the potential to confuse them and cause them to do extra work,
repeating the conflict resolution unnecessarily.

This change purges the autosave buffer before submitting a merge.

Note that it is not transactional, so there is a chance we're losing the
autosaved content even if the submit will fail.

Bug: T245119
Change-Id: I150023f548c5565412769d644a828176f907bc25
2020-02-20 09:43:26 +01:00
..
ve.init.mw.ArticleTarget.js Purge autosave before submitting merged content 2020-02-20 09:43:26 +01:00
ve.init.mw.DesktopArticleTarget.js Merge "Use mw.Api#getErrorMessage instead of custom handling" 2020-01-10 14:22:14 +00:00
ve.init.mw.MobileArticleTarget.js Fix reporting of loading errors from ArticleTarget#loadSuccess 2020-02-12 22:18:40 +01:00
ve.init.mw.Target.js doc: Bump copyright year for 2020 2020-01-08 09:13:24 -08:00