mw.widgets.visibleByteLimit: Temporarily disable whilst OOjs UI label bug is fixed
authorJames D. Forrester <jforrester@wikimedia.org>
Thu, 20 Jul 2017 15:11:10 +0000 (08:11 -0700)
committerJames D. Forrester <jforrester@wikimedia.org>
Thu, 20 Jul 2017 15:11:20 +0000 (08:11 -0700)
Bug: T169982
Change-Id: If5d2b3d705b121c450f99d3ef61b535e7fc89c04

resources/src/mediawiki.widgets.visibleByteLimit/mediawiki.widgets.visibleByteLimit.js

index 5678a80..51b9815 100644 (file)
@@ -9,12 +9,15 @@
 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 );