Fix: mobile menu stays open after a navigation click and blocks most parts of the gui

This commit is contained in:
lukeIam committed 2017-09-02 11:35:57 +02:00
1 parent 7b635e10c9
commit d1f3fe382e
1 file changed
+7
+7
View File
@@ -42,3 +42,10 @@ $(".blue-bg .btnDownload").click(function() {
$(".blue-bg .card-overlay .close-icon").click(function () {
hideCard($(".blue-bg .card-overlay"));
});
// Close menu after click (on mobile)
$(document).on('click','.navbar-collapse.in',function(e) {
if( $(e.target).is('a') && $(e.target).attr('class') != 'dropdown-toggle' ) {
$(this).collapse('hide');
}
});