Last modified: 2013-05-24 11:27:38 UTC
Using jQuery.byteLimit with callback can go into a endless loop, when the text returned by the callback is longer than the maximum. Use the following command and type some text into the input: $( '<input />' ).appendTo( '#firstHeading' ).byteLimit( 5, function( text ) { return 'longText'+text; } ); Maybe you have to load the byteLimit function before, use this command: mw.loader.load('jquery.byteLimit');
Related URL: https://gerrit.wikimedia.org/r/63282 (Gerrit Change Iad84522659ab160e18828cbfc463db83bc7e4795)
successfully merged