fix toggling for IE
authorx2001corpet <x2001corpet@839d8a87-29fc-0310-9880-83ba4fa771e5>
Sat, 24 Mar 2007 15:16:10 +0000 (15:16 +0000)
committerx2001corpet <x2001corpet@839d8a87-29fc-0310-9880-83ba4fa771e5>
Sat, 24 Mar 2007 15:16:10 +0000 (15:16 +0000)
git-svn-id: svn+ssh://murphy/home/svn/platal/trunk@1607 839d8a87-29fc-0310-9880-83ba4fa771e5

templates/admin/wiki.tpl

index 9f10bed..e6ec181 100644 (file)
     }
     return false;
   }
+  var toggle = 0;
   function replie() {
+    if (toggle == 1) return;
+    toggle = 2;
     var cat=$.trim($(this).parent().text().replace(/(.*)\([0-9]+\)/, "$1"));
     $("tr[@id^=row/"+cat+"/]").hide();
     $(this).attr('src', 'images/k1.gif').unbind("click", replie).click(deplie);
+    setTimeout("toggle = 0;", 10);
   }
   function deplie(image) {
+    if (toggle == 2) return;
+    toggle = 1;
     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);
+    setTimeout("toggle = 0;", 10);
   }
   $(document).ready(function() {
     $("tr.pair img[@alt=-]").css("cursor","pointer").each(replie);