+
Members
-
@@ -33,12 +33,12 @@
Administrators
-
@@ -47,14 +47,14 @@
Developers
-
@@ -63,10 +63,10 @@
Tutorials
-
@@ -74,16 +74,16 @@
toc = {};
// Generate the table of contents in the side nav menu (see view/tpl/help.tpl)
$(document).ready(function () {
- $(".panel-collapse.in").find('a').each(function(){
+ $(".doco-section").find('a').each(function(){
var url = document.createElement('a');
url.href = window.location;
var pageName = url.href.split('/').pop().split('#').shift().split('?').shift();
var linkName = $(this).attr('href').split('/').pop();
if(pageName === linkName) {
- var tocUl = $(this).closest('li').append('
').find('ul');
+ var tocUl = $(this).closest('a').append('').find('ul');
tocUl.removeClass(); // Classes are automatically added to elements by something else
tocUl.toc({content: "#doco-content", headings: "h3"});
- tocUl.addClass('toc-content sub-menu');
+ tocUl.addClass('toc-content');
tocUl.attr('id', 'doco-side-toc');
}
diff --git a/view/tpl/help.tpl b/view/tpl/help.tpl
index 61c2b44b2..43b061dcc 100644
--- a/view/tpl/help.tpl
+++ b/view/tpl/help.tpl
@@ -5,7 +5,7 @@
-
+
{{$tocHeading}}
@@ -24,7 +24,7 @@
if($('#doco-top-toc').is(':visible')) {
$('#doco-toc-toggle').removeClass('fa-cog').addClass('fa-caret-right');
} else {
- $('#doco-toc-toggle').removeClass('fa-caret-right').addClass('fa-cog');
+ $('#doco-toc-toggle').removeClass('fa-caret-right').addClass('fa-caret-down');
}
$('#doco-top-toc').toggle();