Skip to content

Commit

Permalink
Fixed - Multi level menu on mobile #632
Browse files Browse the repository at this point in the history
  • Loading branch information
dan269 committed Sep 12, 2019
1 parent e001c08 commit c9e22a2
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions Grand.Web/wwwroot/scripts/public.common.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,14 +73,12 @@ function mainMenuReplace() {
$(this).removeAttr('href');
});

$('#pills-mobile-tabContent .navbar-nav .nav-item.dropdown').click(function () {
var CatForOpen = $(this).find('.dropdown-menu:first');
if (CatForOpen.hasClass('show')) {
CatForOpen.removeClass('show');
}
else {
CatForOpen.addClass('show');
}
$('#pills-mobile-tabContent .navbar-nav .nav-item.dropdown > a').click(function () {
$(this).parent().find('.dropdown-menu:first').addClass('show');

});
$('#pills-mobile-tabContent .navbar-nav .nav-item.cat-back').click(function () {
$(this).parent().removeClass('show');
});

}
Expand Down

0 comments on commit c9e22a2

Please sign in to comment.