Adding support for a callback to jquery.byteLimit
authorKrinkle <krinkle@users.mediawiki.org>
Mon, 8 Aug 2011 17:02:29 +0000 (17:02 +0000)
committerKrinkle <krinkle@users.mediawiki.org>
Mon, 8 Aug 2011 17:02:29 +0000 (17:02 +0000)
commitc503a70ba3549d4048425643bc942d045e498656
treecd0962d01310ce51a0ecab09367c5d458bf39630
parent0e2f6f233dd4f32df5937fad4eabfd024b702efb
Adding support for a callback to jquery.byteLimit
* Fixes (bug 29455) Add support for a filter callback function in jQuery byteLimit plugin.
* Adding unit tests for it
* Changing if-statements in mw.Title's helper functions for regular expression matches. It should check wether the value is not null or undefined. Before it was just a plain if-statement which meant that an empty string would also return false, which made the new byteLimit's tests fail (mw.Title.getMain() expects _name to be a valid string when it does ucFirst() and substr() etc.)
RELEASE-NOTES-1.19
resources/jquery/jquery.byteLimit.js
resources/mediawiki/mediawiki.Title.js
tests/qunit/suites/resources/jquery/jquery.byteLimit.js