From 61257094b7befe12dadbd3593fcfa70d09da2fbb Mon Sep 17 00:00:00 2001 From: Mario Vavti Date: Sun, 12 Mar 2017 22:21:49 +0100 Subject: fix help menu --- doc/toc.html | 70 +++++++++++++++++++++++++++---------------------------- view/tpl/help.tpl | 4 ++-- 2 files changed, 37 insertions(+), 37 deletions(-) diff --git a/doc/toc.html b/doc/toc.html index 3c9c5c299..11635930e 100644 --- a/doc/toc.html +++ b/doc/toc.html @@ -1,30 +1,30 @@
-
+

About

- -
+

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(); -- cgit v1.2.3