(bug 39273) add diff support to LivePreview
authorMatmaRex <matma.rex@gmail.com>
Thu, 23 Aug 2012 22:56:50 +0000 (00:56 +0200)
committerMatmaRex <matma.rex@gmail.com>
Wed, 29 Aug 2012 17:59:18 +0000 (19:59 +0200)
commit99d4ad408f6217106ee67ed3fea55b22d67ec76c
treeffa1b968d7fe820ebccfd7889a4ad88c9656a1f8
parent1cf83c086d2139619992175442085d5b7cd76bf4
(bug 39273) add diff support to LivePreview

Now both "Show preview" and "Show changes" result in an AJAX call;
previously, "Show changes" would just reload the form as usual, and
LivePreview wouldn't handle the #wikiDiff element at all, which resulted
in both the new preview and stale diff being shown.

We load the diff styles using mw.loader.load if necessary (which will
probably be basically always).

Change-Id: Iaf9edf947e019ec7fa949d664b46b88161235b41
RELEASE-NOTES-1.20
skins/common/preview.js