Allow a TitleInputWidget user to decide, if an empty value should be validated
authorFlorian <florian.schmidt.stargatewissen@gmail.com>
Thu, 12 Nov 2015 17:31:57 +0000 (18:31 +0100)
committerBartosz Dziewoński <matma.rex@gmail.com>
Mon, 16 Nov 2015 18:28:41 +0000 (19:28 +0100)
commitad1c51d0e2451d6d2eeabcfe5d94a3a87e041f06
tree5ca7f0ce7b0ce6df9edab8bf12fcc4cd143fd2c9
parente1ebc2de02efbaf9183a48359b0025b04de9c5e4
Allow a TitleInputWidget user to decide, if an empty value should be validated

For some use cases an empty value is valid, too, or at least, it's not a reason to
mark the form input red. Special:Search, e.g.. This change implements a new config
for MediaWiki\Widgets\TitleInputWidget, validate, which allows a user of this
widget to decide, if the value of the input type should be validated (empty -> flagged
red).

Extra points:
 * Fix php notice errors for previously added configuration
 * Added doc for previously added configuration

Bug: T106946
Change-Id: I732a2f56a2375d8c708e3b295996187ee209f1a6
includes/widget/TitleInputWidget.php
resources/src/mediawiki.widgets/mw.widgets.TitleWidget.js