aboutsummaryrefslogtreecommitdiffstats
path: root/view/theme/redbasic/js/redbasic.js
diff options
context:
space:
mode:
authorgit-marijus <mario@mariovavti.com>2017-07-29 16:06:42 +0200
committergit-marijus <mario@mariovavti.com>2017-07-31 02:52:36 +0200
commit280f52f007f00e0a8b2c910445bb54dfbf7275a0 (patch)
treea71dca8ca49cee04590208f5751961ea99dfc39a /view/theme/redbasic/js/redbasic.js
parent11cdd0033d7cff690a9df75d8b5a3b8a29f8098b (diff)
downloadvolse-hubzilla-280f52f007f00e0a8b2c910445bb54dfbf7275a0.tar.gz
volse-hubzilla-280f52f007f00e0a8b2c910445bb54dfbf7275a0.tar.bz2
volse-hubzilla-280f52f007f00e0a8b2c910445bb54dfbf7275a0.zip
close the apps-menu if the notifications-menu is open and vice versa
Diffstat (limited to 'view/theme/redbasic/js/redbasic.js')
-rw-r--r--view/theme/redbasic/js/redbasic.js12
1 files changed, 12 insertions, 0 deletions
diff --git a/view/theme/redbasic/js/redbasic.js b/view/theme/redbasic/js/redbasic.js
index a4fee495c..5a586b9f9 100644
--- a/view/theme/redbasic/js/redbasic.js
+++ b/view/theme/redbasic/js/redbasic.js
@@ -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'
});