TitleInputWidget: Add 'maxLength' of 255 and use $.byteLimit
authorBartosz Dziewoński <matma.rex@gmail.com>
Wed, 12 Aug 2015 14:56:08 +0000 (16:56 +0200)
committerBartosz Dziewoński <matma.rex@gmail.com>
Thu, 20 Aug 2015 15:25:18 +0000 (17:25 +0200)
commit6b79105034ecc1abae6cf458380d283580480a32
tree96559f8f26b9d3cfff873a5d90c0df4ff5e782b7
parent21d07c4e9c044016d263eca1a18798e008c37bf3
TitleInputWidget: Add 'maxLength' of 255 and use $.byteLimit

Integrate $.byteLimit functionality into OOjs UI's value preprocessing
(#cleanUpValue), rather than just calling in on #$input, to avoid
validity state flashing back and forth when the value is limitted.

Bug: T106454
Change-Id: I3d24e4bf7427c9bd922ff2e24edc9583ee0aaecb
includes/widget/TitleInputWidget.php
resources/Resources.php
resources/src/jquery/jquery.byteLimit.js
resources/src/mediawiki.widgets/mw.widgets.TitleInputWidget.js