mw.action.edit: Fix byte limit for the edit summary field
authorBartosz Dziewoński <matma.rex@gmail.com>
Mon, 19 Jun 2017 19:40:27 +0000 (21:40 +0200)
committerBartosz Dziewoński <matma.rex@gmail.com>
Mon, 19 Jun 2017 20:09:08 +0000 (20:09 +0000)
commite9e47c36a473b3819a977637cef9f6f1bf44325e
treee01690ba0b37511debad09335501b053a12635f9
parent5604684b4420048b6f0db29daf5b6ae7d600b446
mw.action.edit: Fix byte limit for the edit summary field

In OOUI mode, the `.byteLimit( 255 )` call must be after
the edit summary widget is infused. Otherwise, infusing
"reverts" the 'maxlength' attribute of the input field
back to the original value of 200, as set by the PHP code.
(The byte limit was still applied, but in most cases the
'maxlength' applied first.)

Bug: T168194
Change-Id: If0117a7af5bb6975c8355b42fdbc8501c6a02919
resources/src/mediawiki.action/mediawiki.action.edit.js