mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/WikiEditor
synced 2024-12-01 03:17:04 +00:00
d1270ed4b6
Using document.activeElement at the time of the unload event as a proxy for whether the user is switching to VE. Switching to VE is weighed more heavily than whether or not the user made changes: switching to VE causes abort.type to be 'switchwithout' regardless of whether changes were made; only if the user isn't switching to VE do we look at whether changes were made and use 'abort' or 'nochange' as appropriate. When wgAction === 'submit' (i.e. we're on a preview / show changes view), it is assumed that the user has made changes. Bug: T95938 Change-Id: Ic91b87c4fc5b601e1fd98b237100d808e97400bd |
||
---|---|---|
.. | ||
images | ||
ext.wikiEditor.dialogs.js | ||
ext.wikiEditor.js | ||
ext.wikiEditor.less | ||
ext.wikiEditor.preview.js | ||
ext.wikiEditor.publish.js | ||
ext.wikiEditor.toolbar.hideSig.js | ||
ext.wikiEditor.toolbar.js | ||
ext.wikiEditor.toolbar.styles.less | ||
jquery.wikiEditor.dialogs.config.js | ||
jquery.wikiEditor.dialogs.config.less | ||
jquery.wikiEditor.dialogs.js | ||
jquery.wikiEditor.dialogs.less | ||
jquery.wikiEditor.html | ||
jquery.wikiEditor.js | ||
jquery.wikiEditor.less | ||
jquery.wikiEditor.preview.js | ||
jquery.wikiEditor.preview.less | ||
jquery.wikiEditor.publish.js | ||
jquery.wikiEditor.toolbar.config.js | ||
jquery.wikiEditor.toolbar.js | ||
jquery.wikiEditor.toolbar.less |