diff options
author | Galette Saucisse <philip@wittamore.com> | 2018-04-20 19:17:52 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-04-20 19:17:52 +0200 |
commit | ba8f8c3403be13ee5fc7af8495be739c6d9c9954 (patch) | |
tree | 35f55c37919e90f78887037d9ef8737be5938c00 /view | |
parent | 92b08f1f07a25976342dc885331ecb1531e256aa (diff) | |
download | volse-hubzilla-ba8f8c3403be13ee5fc7af8495be739c6d9c9954.tar.gz volse-hubzilla-ba8f8c3403be13ee5fc7af8495be739c6d9c9954.tar.bz2 volse-hubzilla-ba8f8c3403be13ee5fc7af8495be739c6d9c9954.zip |
Proposed fix for issue #1091
Diffstat (limited to 'view')
-rw-r--r-- | view/js/mod_help.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/view/js/mod_help.js b/view/js/mod_help.js index a37207807..107845c04 100644 --- a/view/js/mod_help.js +++ b/view/js/mod_help.js @@ -21,7 +21,7 @@ $(document).ready(function () { var pageName = url.href.split('/').pop().split('#').shift().split('?').shift(); var linkName = $(this).attr('href').split('/').pop(); if (pageName === linkName) { - var tocUl = $(this).closest('a').append('<ul>').find('ul'); + var tocUl = $(this).closest('a').after('<ul>').next('ul'); tocUl.removeClass(); // Classes are automatically added to <ul> elements by something else tocUl.toc({content: "#doco-content", headings: "h3"}); tocUl.addClass('toc-content'); |