Bug: T169982
Change-Id: If5d2b3d705b121c450f99d3ef61b535e7fc89c04
mediaWiki.widgets.visibleByteLimit = function ( textInputWidget, limit ) {
limit = limit || +textInputWidget.$input.attr( 'maxlength' );
+ // Temporarily disabled whilst upstream bug is fixed; T169982
+ /*
function updateCount() {
textInputWidget.setLabel( ( limit - $.byteLength( textInputWidget.getValue() ) ).toString() );
}
textInputWidget.on( 'change', updateCount );
// Initialise value
updateCount();
+ */
// Actually enforce limit
textInputWidget.$input.byteLimit( limit );