With the limit being recently increased to 500 characters users are
less likely to hit it, and so the distracting label is less useful,
and it might instead inspire users to fill in the longest possible
summary when it's not needed.
Bug: T190570
Change-Id: I54d75ab6061de0de79b7a8112eb859a4c8a5e22a
function updateCount() {
var remaining = limit - byteLength( textInputWidget.getValue() );
function updateCount() {
var remaining = limit - byteLength( textInputWidget.getValue() );
- remaining = mw.language.convertNumber( remaining );
+ if ( remaining > 99 ) {
+ remaining = '';
+ } else {
+ remaining = mw.language.convertNumber( remaining );
+ }
textInputWidget.setLabel( remaining );
}
textInputWidget.on( 'change', updateCount );
textInputWidget.setLabel( remaining );
}
textInputWidget.on( 'change', updateCount );
function updateCount() {
var remaining = limit - codePointLength( textInputWidget.getValue() );
function updateCount() {
var remaining = limit - codePointLength( textInputWidget.getValue() );
- remaining = mw.language.convertNumber( remaining );
+ if ( remaining > 99 ) {
+ remaining = '';
+ } else {
+ remaining = mw.language.convertNumber( remaining );
+ }
textInputWidget.setLabel( remaining );
}
textInputWidget.on( 'change', updateCount );
textInputWidget.setLabel( remaining );
}
textInputWidget.on( 'change', updateCount );