Allow maxlength attribute on HTMLSelectAndOtherField
authorumherirrender <umherirrender_de.wp@web.de>
Sat, 26 Jul 2014 21:56:37 +0000 (23:56 +0200)
committerumherirrender <umherirrender_de.wp@web.de>
Sun, 16 Nov 2014 20:35:51 +0000 (21:35 +0100)
commitb18197dd81794e06ab2f930171019cf5196fb3cb
tree65c73d503a80258e0f6fc188db5f9b73cba54851
parent8e6fa108b80fb0572c695171e60efbf1b984dd7e
Allow maxlength attribute on HTMLSelectAndOtherField

A reason on a SelectAndOtherField can have two parts, one of the scroll
down box and a free text field. The free text field is actually
unlimited.
This patch allows the maxlength on that field. To respect the concat of
the two parts, also javascript code is added, which adds a dynamic
maxlength to respect also the text from the scroll down box.

The HTMLSelectAndOtherField is only used on Special:Block,
where the maxlength attribute is now set to 255 (length of the database
field ipb_reason).

Change-Id: I5c164b41ab047e7ecf9d92db6eddcc980e2db048
includes/htmlform/HTMLSelectAndOtherField.php
includes/specials/SpecialBlock.php
resources/Resources.php
resources/src/mediawiki/mediawiki.htmlform.js