mediawiki.action.edit.preview: Disable if there is no #wpTextbox1
authorFomafix <fomafix@googlemail.com>
Sun, 29 Mar 2015 13:57:37 +0000 (13:57 +0000)
committer[[mw:User:Fomafix]] <gerritpatchuploader@gmail.com>
Sun, 29 Mar 2015 13:57:37 +0000 (13:57 +0000)
commitb8c6b41a5017915e33ff3499e332271cda90bf4a
tree172eeb600b728e32816034f1266f5da9a15ec6e8
parenta6a72cf00bbc01c7875d4aef4ba2859e951bde01
mediawiki.action.edit.preview: Disable if there is no #wpTextbox1

ProofreadPage has custom editforms for Index pages, which are not
supported by the API. These editforms have no #wpTextbox1, so disable
live preview in that case.

Make this check on click avoid T94089.

Bug: T78709
Change-Id: I628d3b226a4294f2878fc4175080a975fd86e507
resources/src/mediawiki.action/mediawiki.action.edit.preview.js