com web/php: quicktoc for articles/chapters too: js/common.js

From: Date: Thu, 30 Dec 2010 11:01:04 +0000
Subject: com web/php: quicktoc for articles/chapters too: js/common.js
Groups: php.webmaster 
Request: Send a blank email to php-webmaster+get-23712@lists.php.net to get a copy of this message
Commit: 5fa074d65e886eb6b5adbf12fb311272f72993fc Author: Hannes Magnusson <bjori@php.net> 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>"; });

« previous php.webmaster (#23712) next »