Changed bb code [toc] to make it more flexible

This usage is know closer to the original usage of
http://ndabas.github.io/toc/

Changed:
- jquery.toc.js: Do not check for empty headings
- bbcode.php: Added processing of [toc] with parameters
- main.js: Use the default params for jquery.toc.js
- bbcode.html: Added more help for [toc] and corrected some html
This commit is contained in:
Einer von Vielen
2015-02-14 20:33:51 +01:00
parent 59828593c1
commit 6ed8fb30b8
4 changed files with 54 additions and 51 deletions

View File

@@ -1125,7 +1125,7 @@ $(document).ready(function() {
$(".autotime").timeago();
$("#toc").toc({content: "body", headings: "h1,h2,h3,h4"});
$("#toc").toc();
});