close the apps-menu if the notifications-menu is open and vice versa
This commit is contained in:
parent
1f57a59618
commit
7b992decd4
@ -375,7 +375,7 @@ function NavUpdate() {
|
|||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$('#notifications-btn').css('opacity', 0.5);
|
$('#notifications-btn').css('opacity', 0.5);
|
||||||
$('#navbar-collapse-1').removeClass('in');
|
$('#navbar-collapse-1').removeClass('show');
|
||||||
}
|
}
|
||||||
|
|
||||||
if(data.network == 0) {
|
if(data.network == 0) {
|
||||||
|
@ -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({
|
$("input[data-role=cat-tagsinput]").tagsinput({
|
||||||
tagClass: 'badge badge-pill badge-warning text-dark'
|
tagClass: 'badge badge-pill badge-warning text-dark'
|
||||||
});
|
});
|
||||||
|
@ -68,7 +68,7 @@
|
|||||||
<i class="fa fa-exclamation-circle"></i>
|
<i class="fa fa-exclamation-circle"></i>
|
||||||
</button>
|
</button>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
<button class="navbar-toggler border-0" type="button" data-toggle="collapse" data-target="#navbar-collapse-2">
|
<button id="menu-btn" class="navbar-toggler border-0" type="button" data-toggle="collapse" data-target="#navbar-collapse-2">
|
||||||
<i class="fa fa-bars"></i>
|
<i class="fa fa-bars"></i>
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
|
Reference in New Issue
Block a user