mw.htmlform: Fix 'hide-if' disabling OOUI fields
authorBartosz Dziewoński <matma.rex@gmail.com>
Sun, 15 Jan 2017 12:51:21 +0000 (13:51 +0100)
committerBartosz Dziewoński <matma.rex@gmail.com>
Sun, 15 Jan 2017 12:51:21 +0000 (13:51 +0100)
commit98d7ec136bb1301315084d52bdd0e85c5097e638
treeb42f7b0209123b2dc4c69388aff39c51bbd81456
parent3f69747833eee54f0d15974f0d2ec5cf2f7531e4
mw.htmlform: Fix 'hide-if' disabling OOUI fields

Follow-up to 5d5dbc83da4bc339e6c2f7fb3d346ba259192b68.

The logic here is supposed to be the same as in the block above, but
it was inverted. I think this code used to be `.setRequired( false )`
at some point, and I changed the 'setRequired' but forgot the 'false'.

Change-Id: Iabb112d3d0519df079bc2c9afab7d4436fff6562
resources/src/mediawiki/htmlform/hide-if.js