close the apps-menu if the notifications-menu is open and vice versa

This commit is contained in:
git-marijus
2017-07-29 16:06:42 +02:00
parent 1f57a59618
commit 7b992decd4
3 changed files with 14 additions and 2 deletions

View File

@@ -54,6 +54,18 @@ $(document).ready(function() {
}
});
$('#menu-btn').click(function() {
if($('#navbar-collapse-1').hasClass('show')){
$('#navbar-collapse-1').removeClass('show');
}
});
$('#notifications-btn').click(function() {
if($('#navbar-collapse-2').hasClass('show')){
$('#navbar-collapse-2').removeClass('show');
}
});
$("input[data-role=cat-tagsinput]").tagsinput({
tagClass: 'badge badge-pill badge-warning text-dark'
});