aboutsummaryrefslogtreecommitdiffstats
path: root/view
diff options
context:
space:
mode:
author <tomwie@users.sourceforge.net>2015-01-14 22:47:54 +0100
committer <tomwie@users.sourceforge.net>2015-01-14 22:47:54 +0100
commit09129cbe5f7e8cb331b68469b74438464960af0b (patch)
tree7e7a2cceec6f739032381f5141f2e7002a96530a /view
parent43b877caa1381c2ac8a031751acd2dab3ec739f0 (diff)
downloadvolse-hubzilla-09129cbe5f7e8cb331b68469b74438464960af0b.tar.gz
volse-hubzilla-09129cbe5f7e8cb331b68469b74438464960af0b.tar.bz2
volse-hubzilla-09129cbe5f7e8cb331b68469b74438464960af0b.zip
Added a table of content as bbcode element [toc] for webpages
- Included jquery.toc.js (http://www.apache.org/licenses/LICENSE-2.0) - Modified jquery.toc.js to work with the webpages of the red#matrix - Added info to the help
Diffstat (limited to 'view')
-rw-r--r--view/js/main.js2
-rw-r--r--view/php/theme_init.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/view/js/main.js b/view/js/main.js
index 459600793..0c56c8d41 100644
--- a/view/js/main.js
+++ b/view/js/main.js
@@ -1125,7 +1125,7 @@ $(document).ready(function() {
$(".autotime").timeago();
- $("#toc").tableOfContents();
+ $("#toc").toc({content: "div.page-body", headings: "h1,h2,h3,h4"});
});
diff --git a/view/php/theme_init.php b/view/php/theme_init.php
index 1b6c418f7..b3580b81f 100644
--- a/view/php/theme_init.php
+++ b/view/php/theme_init.php
@@ -43,7 +43,7 @@ head_add_js('library/colorbox/jquery.colorbox-min.js');
head_add_js('library/bootstrap-tagsinput/bootstrap-tagsinput.js');
head_add_js('library/jquery.AreYouSure/jquery.are-you-sure.js');
-head_add_js('library/tableofcontents/jquery.tableofcontents.js');
+head_add_js('library/tableofcontents/jquery.toc.js');
/**
* Those who require this feature will know what to do with it.
* Those who don't, won't.