add active to all the parents, not just one parent

This commit is contained in:
आयुष झा 2020-06-01 18:43:12 +05:45
parent b7ee70b690
commit f90147f0d6
No known key found for this signature in database
GPG Key ID: B8A4C36CEE73C65F
1 changed files with 1 additions and 1 deletions

View File

@ -6,8 +6,8 @@ function collapse_toc_elements_on_click (nav_li_a){
states. The active attribute is documented in bootstrap.
https://getbootstrap.com/docs/4.0/components/navbar/#nav
*/
$(nav_li_a).parent().toggleClass("active");
$("#text-table-of-contents li").removeClass("active");
$(nav_li_a).parents().toggleClass("active");
}
$( document ).ready(function() {