Merge pull request #22 from Pmac627/gh-pages
Added additional responsive menu close logic
This commit is contained in:
commit
a1ec6f7ef2
@ -24,3 +24,10 @@ $('body').scrollspy({
|
|||||||
$('.navbar-collapse ul li a').click(function() {
|
$('.navbar-collapse ul li a').click(function() {
|
||||||
$('.navbar-toggle:visible').click();
|
$('.navbar-toggle:visible').click();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// Closes the Responsive Menu on Click outside Menu
|
||||||
|
$('body > *').not('nav').click(function() {
|
||||||
|
if(!$('button.navbar-toggle').hasClass('collapsed')) {
|
||||||
|
$('.navbar-toggle:visible').click();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user