Commit graph

7 commits

Author SHA1 Message Date
Krinkle
acd441380d Remove resize/arrow cursors from jquery.makeCollapsible
* In Safari they look nice (a visual clue which direction we're heading on-click) but on other browsers there is only a general arrow-icon that points both up and down, and other browsers have an even weirder cursor for this. Summarized: It's inconsistent and redundant with the text-label we already have.

(Poke r79083 CR)
2011-06-12 00:17:02 +00:00
Krinkle
fd7afe8b90 Fixing typo from r78944 2010-12-24 16:08:42 +00:00
Krinkle
6c83eee8ac Fixing TODO from r78915
* Removed old "kr-" prefix for the plugin
* Moved function call from the bottom of the script to mw init function
2010-12-24 01:30:23 +00:00
Krinkle
1a827a0984 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)
2010-12-23 23:34:32 +00:00
Krinkle
c105152ef1 removing cursor style from JS, adding to CSS file instead 2010-12-23 19:42:26 +00:00
Krinkle
3f57784777 fixing comment in jquery.makeCollapsible.js (in mw 'jquery' is written in lowercase in filenames 2010-12-23 19:27:43 +00:00
Krinkle
eb18151c7a adding jQuery.makeCollapsible plugin 2010-12-23 19:25:16 +00:00