diff options
author | git-marijus <mario@mariovavti.com> | 2017-07-29 16:06:42 +0200 |
---|---|---|
committer | git-marijus <mario@mariovavti.com> | 2017-07-29 16:06:42 +0200 |
commit | 7b992decd4fdd670e6c01ea31a14e756974bf1a2 (patch) | |
tree | e937916a40066fd7179fee1c4be167c06944baa0 /view/theme/redbasic | |
parent | 1f57a59618bc5e6bb8d0cda3031ba2751947e0c9 (diff) | |
download | volse-hubzilla-7b992decd4fdd670e6c01ea31a14e756974bf1a2.tar.gz volse-hubzilla-7b992decd4fdd670e6c01ea31a14e756974bf1a2.tar.bz2 volse-hubzilla-7b992decd4fdd670e6c01ea31a14e756974bf1a2.zip |
close the apps-menu if the notifications-menu is open and vice versa
Diffstat (limited to 'view/theme/redbasic')
-rw-r--r-- | view/theme/redbasic/js/redbasic.js | 12 |
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' }); |