aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGalette Saucisse <philip@wittamore.com>2018-04-20 19:17:52 +0200
committerGitHub <noreply@github.com>2018-04-20 19:17:52 +0200
commitba8f8c3403be13ee5fc7af8495be739c6d9c9954 (patch)
tree35f55c37919e90f78887037d9ef8737be5938c00
parent92b08f1f07a25976342dc885331ecb1531e256aa (diff)
downloadvolse-hubzilla-ba8f8c3403be13ee5fc7af8495be739c6d9c9954.tar.gz
volse-hubzilla-ba8f8c3403be13ee5fc7af8495be739c6d9c9954.tar.bz2
volse-hubzilla-ba8f8c3403be13ee5fc7af8495be739c6d9c9954.zip
Proposed fix for issue #1091
-rw-r--r--view/js/mod_help.js2
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');