Improving jquery.makeCollapsible:
authorKrinkle <krinkle@users.mediawiki.org>
Thu, 23 Dec 2010 23:34:32 +0000 (23:34 +0000)
committerKrinkle <krinkle@users.mediawiki.org>
Thu, 23 Dec 2010 23:34:32 +0000 (23:34 +0000)
commit1a827a098413dcaa47d5c18c1c8ece194ef06bfa
treed3be182c78bcceb55262f4443bd1293e242a9b19
parent2919e5928196aeec8dd5990bc5a06051b959a280
Improving jquery.makeCollapsible:
* Setting toggle function in a variable to easier reuse it through the plugin
* Replace "-hide" and "-show" classes with "expanded" and "collapsed" respectively
* For more flexibility, if there's a toggle-element already, bind the function to it and use it instead. Otherwise, just create one as usual. See [[betawiki:User:Krinkle/CollapsingTestpageKr#footer|CollapsingTestpageKr#Combination example]]
** It's more likely that the source has a custom position of the togglelink waiting for it to be bound, then it to be already bound.
* Some comments improved
* Message key "hide" to "collapsible-collapse" (Follow-up r78915 CR)
* Message key "show" to "collapsible-expand"
* Changed toggle-link content filling from html() to text() (message errors like <keyname> caused an HTML-element to be created)
resources/Resources.php
resources/jquery/jquery.makeCollapsible.css
resources/jquery/jquery.makeCollapsible.js