HTMLForm: Add hide-if
authorBrad Jorsch <bjorsch@wikimedia.org>
Thu, 27 Feb 2014 17:14:38 +0000 (12:14 -0500)
committerOri.livneh <ori@wikimedia.org>
Fri, 2 May 2014 14:57:34 +0000 (14:57 +0000)
commitc310e7b40c3b11b6e162c5e84acd638728a885f8
tree1513a4923ffe7d026b01a3c9c9cde217adfe8ee8
parent9a4968a2bab4104a0bff7da5771a271b95df00bf
HTMLForm: Add hide-if

SecurePoll will need a way to display a field only if another field has
a particular value.

We already have this for a limited case in HTMLSelectOrOtherField; this
makes it possible to specify that any particular field should be hidden
based on any other field.

Change-Id: I5d2e6fb1efba0ad97647ac140e2b9a9ac0aee06e
includes/htmlform/HTMLFormField.php
resources/src/mediawiki/mediawiki.htmlform.js