Commit:    5fa074d65e886eb6b5adbf12fb311272f72993fc
Author:    Hannes Magnusson <[email protected]>         Thu, 30 Dec 2010 11:01:04 
+0000
Parents:   2e63913813b1d1dff5bfb2a0c63944c3ae5b285b
Branches:  master

Link:       
http://git.php.net/?p=web/php.git;a=commitdiff;h=5fa074d65e886eb6b5adbf12fb311272f72993fc

Log:
quicktoc for articles/chapters too

Changed paths:
  M  js/common.js


Diff:
diff --git a/js/common.js b/js/common.js
index 7d92ffb..1651de2 100644
--- a/js/common.js
+++ b/js/common.js
@@ -95,7 +95,7 @@ $(document).ready(function() {
         $($(".footmenu")[1]).append("<li><a href='" + bugurl + "'>Report bug 
on this page</a></li>");
 
         var l = "";
-        $(".refsect1 h3").each(function() {
+        $(".refsect1 h3, .sect1 h2, .sect2 h3, .sect3 h4").each(function() {
             var id = $(this).parent().attr("id");
             l += "<li><a href='#" + id + "'>" + $(this).text() + "</a></li>";
         });


--
PHP Webmaster List Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to