From 20d06d5efcf338e316c09268c650ce412b135b71 Mon Sep 17 00:00:00 2001 From: x2001corpet Date: Sat, 24 Mar 2007 15:16:10 +0000 Subject: [PATCH] fix toggling for IE git-svn-id: svn+ssh://murphy/home/svn/platal/trunk@1607 839d8a87-29fc-0310-9880-83ba4fa771e5 --- templates/admin/wiki.tpl | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/templates/admin/wiki.tpl b/templates/admin/wiki.tpl index 9f10bed..e6ec181 100644 --- a/templates/admin/wiki.tpl +++ b/templates/admin/wiki.tpl @@ -35,15 +35,22 @@ } 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); -- 2.1.4