Fix IE7 bug which causes the TOC to immediately close after opening
authorMike Cardwell <github@grepular.com>
Tue, 28 Sep 2010 15:22:17 +0000 (16:22 +0100)
committerMike Cardwell <github@grepular.com>
Tue, 28 Sep 2010 15:22:17 +0000 (16:22 +0100)
templates/web/doc/chapter.js

index 1e81a848afef053a3bab27405caeb19e37f11eaa..988bf6a45ecf1c3911806577c89d3f4c60c1a846 100644 (file)
@@ -47,7 +47,7 @@
             $ul.removeClass('hidden').css('visibility', 'hidden').appendTo('#toc').css('left', '-' + $ul.width() + 'px').css('visibility', 'visible');
             $('#toc > img').mousedown(click_func);
             $('#toc > ul').click(click_func);
-            $('#toc a').click(function (e) {
+            $('#toc, #toc a').click(function (e) {
                 e.stopPropagation()
             });
         });