diff options
author | zotlabs <mike@macgirvin.com> | 2016-11-04 12:10:08 +1100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-11-04 12:10:08 +1100 |
commit | 4a738024cc9eab4d893357d45d9483ddcdda116c (patch) | |
tree | d6953e69966e40fd54e8d729cd7f9624685bd007 | |
parent | b541351a0a52d156085b0f1e06079c1c2e409eb8 (diff) | |
parent | 8ac32cf4d60d1e0bf6e8afd81b37cb3503063140 (diff) | |
download | volse-hubzilla-4a738024cc9eab4d893357d45d9483ddcdda116c.tar.gz volse-hubzilla-4a738024cc9eab4d893357d45d9483ddcdda116c.tar.bz2 volse-hubzilla-4a738024cc9eab4d893357d45d9483ddcdda116c.zip |
Merge pull request #579 from anaqreon/ui
Collapse navbar-collapse-1 if avatar menu is clicked.
-rw-r--r-- | view/theme/redbasic/js/redbasic.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/view/theme/redbasic/js/redbasic.js b/view/theme/redbasic/js/redbasic.js index 999b46268..bdd6441f8 100644 --- a/view/theme/redbasic/js/redbasic.js +++ b/view/theme/redbasic/js/redbasic.js @@ -32,6 +32,12 @@ $(document).ready(function() { $('#expand-tabs-icon').toggleClass('fa-arrow-circle-down').toggleClass('fa-arrow-circle-up'); }); + $('#avatar').click(function() { + if($('#navbar-collapse-1').hasClass('in')){ + $('#navbar-collapse-1').removeClass('in'); + } + }); + if($('#tabs-collapse-1').length === 0) { $('#expand-tabs').hide(); } |