Proposed fix for issue #1091
This commit is contained in:
parent
92b08f1f07
commit
ba8f8c3403
@ -21,7 +21,7 @@ $(document).ready(function () {
|
|||||||
var pageName = url.href.split('/').pop().split('#').shift().split('?').shift();
|
var pageName = url.href.split('/').pop().split('#').shift().split('?').shift();
|
||||||
var linkName = $(this).attr('href').split('/').pop();
|
var linkName = $(this).attr('href').split('/').pop();
|
||||||
if (pageName === linkName) {
|
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.removeClass(); // Classes are automatically added to <ul> elements by something else
|
||||||
tocUl.toc({content: "#doco-content", headings: "h3"});
|
tocUl.toc({content: "#doco-content", headings: "h3"});
|
||||||
tocUl.addClass('toc-content');
|
tocUl.addClass('toc-content');
|
||||||
|
Reference in New Issue
Block a user