fixing script location for parent highlighting in navbar

This commit is contained in:
Tom Johnson 2015-05-13 12:29:10 -07:00
parent ab51a49622
commit d29dc93a39
2 changed files with 2 additions and 4 deletions

View File

@ -99,3 +99,5 @@
{% endif %}
</div>
<!-- this highlights the active parent class in the navgoco sidebar. this is critical so that the parent expands when you're viewing a page. This must appear below the sidebar code above.-->
<script>$("li.active").parents('li').toggleClass("active");</script>

View File

@ -15,14 +15,10 @@ $( document ).ready(function() {
{% endif %}
// activate tooltips. although this is a bootstrap js function, it must be activated this way in your theme.
$('[data-toggle="tooltip"]').tooltip({
placement : 'top'
});
// this highlights the active parent class in the navgoco sidebar. this is critical so that the parent expands when you're viewing a page.
$("li.active").parents('li').toggleClass("active");
});
// needed for nav tabs on pages. See Formatting > Nav tabs for more details.