add null check just incase
This commit is contained in:
parent
0ff0774acf
commit
7f35f1b8d9
1 changed files with 5 additions and 3 deletions
|
@ -34,9 +34,11 @@
|
||||||
// Creates a click handler to collapse the navigation when
|
// Creates a click handler to collapse the navigation when
|
||||||
// anchors in the mobile nav pop up are clicked
|
// anchors in the mobile nav pop up are clicked
|
||||||
var navMain = $(".navbar-collapse");
|
var navMain = $(".navbar-collapse");
|
||||||
|
if (navMain) {
|
||||||
navMain.on("click", "a", null, function (e) {
|
navMain.on("click", "a", null, function (e) {
|
||||||
$('.navbar-collapse').collapse('hide');
|
$('.navbar-collapse').collapse('hide');
|
||||||
});
|
});
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
})(jQuery);
|
})(jQuery);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue