aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorgit-marijus <mario@mariovavti.com>2018-04-23 10:28:50 +0200
committerGitHub <noreply@github.com>2018-04-23 10:28:50 +0200
commitde6f07ec8957af05d2e158cbd9b2708b9a4ae400 (patch)
tree264415435a5c3cafffd6464589b5edb4373eda86
parentd0dc8c1e4c085cefb2f4ae6f1a10750a25c66634 (diff)
parentba8f8c3403be13ee5fc7af8495be739c6d9c9954 (diff)
downloadvolse-hubzilla-de6f07ec8957af05d2e158cbd9b2708b9a4ae400.tar.gz
volse-hubzilla-de6f07ec8957af05d2e158cbd9b2708b9a4ae400.tar.bz2
volse-hubzilla-de6f07ec8957af05d2e158cbd9b2708b9a4ae400.zip
Merge pull request #1097 from galettesaucisse/patch-13
Proposed fix for issue #1091 - mod-help.js
-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');