mediawiki.action.edit.preview: Fix for LiquidThreads hack
authorTimo Tijhof <krinklemail@gmail.com>
Tue, 8 Oct 2013 19:40:00 +0000 (21:40 +0200)
committerTimo Tijhof <krinklemail@gmail.com>
Tue, 8 Oct 2013 20:04:07 +0000 (22:04 +0200)
commitbbdd7b9cb38f688bec46ce868bc7385155e54ce0
tree95d78d5889750ada7a75066863f6321be877c94d
parent80004c185f6fc24baf248a10de73995a18f5c65c
mediawiki.action.edit.preview: Fix for LiquidThreads hack

LiquidThreads is loading this core module when rendering an
inline edit form. Because the form doesn't have the same ID
as the one in core, this broke after becd284.

It previously worked because the click event on the button (of
which LQT did duplicate the ID from core) bubbles up to the
document body and thus trigger this private handler of the
core edit preview module.

Change-Id: I9e35d0c48b86e1c9073b68313a8a330c6ea85b86
resources/mediawiki.action/mediawiki.action.edit.preview.js