- var cat=$.trim($(this).parent().text().replace(/(.*)\([0-9]+\)/, "$1"));
- $("tr[@id^=row/"+cat+"/]").show();
- $(this).attr('src', 'images/k2.gif').unbind("click", deplie).click(replie);
+ $("tr[@id^=row_"+cat+"_]").show();
+ $(me).attr('src', 'images/k2.gif');
+ }
+ function toggle_folder() {
+ me = this;
+ if ($(this).attr("class") == "wiki_category")
+ me = $("../img.wiki_root", me)[0];
+ var cat=$.trim($(me).parent().text().replace(/(.*)\([0-9]+\)/, "$1"));
+ if ($(me).attr('src') == "images/k1.gif") {
+ deplie(me, cat);
+ }
+ replie(me, cat);