mediawiki-extensions-Visual.../modules/ve-mw/init
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
..
styles Override overflow: hidden; for <h3>s in the command help dialog 2014-10-27 17:51:46 -07:00
targets Fix back button not exiting VE 2014-11-19 02:07:41 +00:00
ve.init.mw.js Use registered target, instead of ve.init.Target 2014-06-17 20:41:01 +01:00
ve.init.mw.LinkCache.js Show category items as red if they don't have description pages 2014-11-08 14:27:27 +00:00
ve.init.mw.Platform.js Use hasOwnProperty instead of 'key in obj' 2014-11-05 20:54:50 +00:00
ve.init.mw.Target.js When saving, return the full contentSub to the client 2014-11-12 17:36:59 +00:00
ve.init.mw.TargetEvents.js Switch 'disallowQuotedKeysInObjects' jscs rule on and fix up 2014-08-22 13:50:48 -07:00