Fix the nav item collapse and spy functionality (#138)
This commit is contained in:
parent
9ac57313ff
commit
beb9d55b95
2 changed files with 11 additions and 19 deletions
|
@ -30,6 +30,15 @@
|
|||
$('#logo').attr("src", invertedLogo);
|
||||
}
|
||||
});
|
||||
|
||||
// Creates a click handler to collapse the navigation when
|
||||
// anchors in the mobile nav pop up are clicked
|
||||
var navMain = $(".navbar-collapse");
|
||||
if (navMain) {
|
||||
navMain.on("click", "a", null, function (e) {
|
||||
$('.navbar-collapse').collapse('hide');
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
})(jQuery);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue