aboutsummaryrefslogtreecommitdiffstats
path: root/view/theme
diff options
context:
space:
mode:
authorgit-marijus <mario@mariovavti.com>2017-07-29 16:06:42 +0200
committergit-marijus <mario@mariovavti.com>2017-07-29 16:06:42 +0200
commit7b992decd4fdd670e6c01ea31a14e756974bf1a2 (patch)
treee937916a40066fd7179fee1c4be167c06944baa0 /view/theme
parent1f57a59618bc5e6bb8d0cda3031ba2751947e0c9 (diff)
downloadvolse-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')
-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'
});