mediawiki-extensions-Visual.../modules/ve-mw
Timo Tijhof d16fef546a mw.ViewPageTarget: Fix incorrect retention of the wrong oldid
* Only pass the oldid to the API from #load if we restoring from
  oldid in the url. Otherwise load the latest version.
* Setting 'restoring' from mw.Target instead of mw.ViewPageTarget
  so that we don't rely on mw.ViewPageTarget in mw.Target#load.
* Fix the API to not require 'oldid' to be passed.
* Fix the API to actually return the 'newrevid' property. It
  was doing a no-op on a $result that is never used due to the
  same variable being overwritten with the result of parseWikitext.
* Moved updating of wgCurRevisionId to mw.ViewPageTarget as it
  belongs there (possible future inline editors probably act
  on a different page than the main one). Also made it only
  update if it isn't undefined, so that a null edit doesn't
  result in wgCurRevisionId being unset.

Bug: 49943
Bug: 50441
Change-Id: I221e5038f95eadf6d87013e80f12394f0376a293
2013-07-08 16:11:23 -07:00
..
ce Math Node UI 2013-07-07 07:32:11 +00:00
dm Math Node UI 2013-07-07 07:32:11 +00:00
init mw.ViewPageTarget: Fix incorrect retention of the wrong oldid 2013-07-08 16:11:23 -07:00
test Blacklist Firefox 11 and 12 2013-07-05 11:24:06 -07:00
ui Merge changes I4d7533af,Ib909c5fb 2013-07-07 07:36:00 +00:00