mediawiki-extensions-Visual.../modules/ve-mw
Roan Kattouw bb6e01c488 Fix back button not exiting VE
When you clicked the Back button in the browser, the URL
in the address bar would change (removing veaction=edit),
but we would not go back to read mode. This was broken
by 5c0c11753 almost a month ago but apparently no one noticed.

This is because 5c0c11753 moved the pushState() calls to
be earlier (in init init), making the replaceState() call
in the ViewPageTarget constructor (which is there
specifically for this bug) run too late in those cases.

The simplest way to fix this is to duplicate these replaceState()
calls before the pushState() calls in init init.
I feel a bit bad about copying code, but not very bad
because the code I'm copying already has a FIXME comment
about how there should be a better way :P

Change-Id: I6627a5d1d9377ae815bc58bceeb059ce9f4f19ab
2014-11-19 02:07:41 +00:00
..
ce Move addClass calls to setup in GeneratedContentNodes 2014-11-12 22:52:59 +00:00
dm Merge "Methods for new "maps" property in TD Root" 2014-11-17 20:56:49 +00:00
i18n Localisation updates from https://translatewiki.net. 2014-11-18 21:35:49 +01:00
init Fix back button not exiting VE 2014-11-19 02:07:41 +00:00
tests test: Omit 'window' in mw-preload.js 2014-11-19 01:46:38 +00:00
ui Merge "Rename input variables in media dialog" 2014-11-12 20:48:24 +00:00