diff --git a/doc/toc.html b/doc/toc.html
index 0d342d25a..7fad42b36 100644
--- a/doc/toc.html
+++ b/doc/toc.html
@@ -15,10 +15,6 @@
#region_1 .widget ul ul {
list-style-type: none;
}
-
- .toc-content {
- background-color: white;
- }
.toc-content li,
#doco-top-toc li {
@@ -99,293 +95,272 @@
@@ -393,7 +368,6 @@
// 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(){
window.console.log($(this).attr('href'));
var url = document.createElement('a');
@@ -407,21 +381,14 @@
tocUl.removeClass(); // Classes are automatically added to
elements by something else
tocUl.toc({content: "#doco-content", headings: "h1"});
tocUl.addClass('toc-content sub-menu');
- tocUl.attr('id', 'doco-side-toc');
- if( $(window).width() > 768) {
- tocUl.sticky({topSpacing:$('nav').outerHeight(true), zIndex: 1000});
- }
+ tocUl.attr('id', 'doco-side-toc');
+
}
});
- $( window ).resize(function() {
- if($(window).width() < 768 ) {
- $( "#doco-side-toc" ).unstick();
- } else {
- $( "#doco-side-toc" ).sticky({topSpacing:$('nav').outerHeight(true), zIndex: 1000});
- }
- });
-
+ $(".widget").stick_in_parent({
+ offset_top: $('nav').outerHeight(true)
+ });
});
diff --git a/view/tpl/help.tpl b/view/tpl/help.tpl
index 1c5d05738..8eb53417a 100644
--- a/view/tpl/help.tpl
+++ b/view/tpl/help.tpl
@@ -16,16 +16,7 @@
// Generate the table of contents in the side nav menu (see view/tpl/help.tpl)
$(document).ready(function () {
-
$('#doco-top-toc').toc({content: "#doco-content", headings: "h1,h2,h3,h4"});
- $('.navbar-header').append('