Fix bug in makeCollapsible.
authorKrinkle <krinkle@users.mediawiki.org>
Sat, 5 Mar 2011 19:00:19 +0000 (19:00 +0000)
committerKrinkle <krinkle@users.mediawiki.org>
Sat, 5 Mar 2011 19:00:19 +0000 (19:00 +0000)
commit27b5c803d7b8d4be316b7329e5363188a2ae0694
tree20b72ca7dbd85bc423e01ad38f78100af943b794
parent231819bdbae6e5e8908553da8394cf74e6da9639
Fix bug in makeCollapsible.
* The instantHide implementation (added in r82471) didn't cover the case where a table is collapsed by default, it needs to pass the toggle to the function so that the row it is in can be excluded.
* The bug was found by user Helder.wiki, also reproducable on the demonstration page (I guess it was cached for everyone, since nobody noticed?)
* Demonstration page has been refreshed and all tests are passed now.
resources/jquery/jquery.makeCollapsible.js