mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/WikiEditor
synced 2024-11-12 09:57:16 +00:00
418baf1efa
So that the ID isn't reused when the user uses the back button to navigate back to an edit page. It would be more natural to use pageshow for this, but that event also fires on initial load. There is a .persisted property that indicates whether the page was recycled, but that property doesn't work in Chrome: https://code.google.com/p/chromium/issues/detail?id=344507 Doing this from pagehide doesn't work either, because that runs before unload (at least in Chrome) and causes the abort event to be emitted with the new ID. So instead, regenerate the ID in the unload handler after the abort event has been sent. Bug: T95919 Change-Id: I20a602a7896e75ffa116dcd2c137306ca84164b6 |
||
---|---|---|
.. | ||
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 |