Page MenuHomePhabricator

Create a reusable byteLimit utlity for dynamic maxlength of input fields
Closed, ResolvedPublic

Description

The editsummary has a dynamic maxlength due to js. This is hardcoded in mediawiki.action.edit.js.

I think it is better to make it reusable, so other input fields and extensions can use the same piece of code. Maybe make a module for the resourceloader.

Thanks.


Version: 1.18.x
Severity: normal

Details

Reference
bz28650

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 11:35 PM
bzimport set Reference to bz28650.

Yeah, this should be made a jQuery plugin.

jp.posma wrote:

Fix

This should do the trick.

Attached:

Patch applied in r86698, thanks.