diff options
author | Mario Vavti <mario@mariovavti.com> | 2021-07-05 10:42:36 +0200 |
---|---|---|
committer | Mario Vavti <mario@mariovavti.com> | 2021-07-05 10:42:36 +0200 |
commit | d45df824edaf6f05ca33df31ece56846809685d0 (patch) | |
tree | ecdbdf0098b2143fe3319be80170de1d49075c5c /view | |
parent | 50ead82bc4a3dc0a3289cbfcf9625dcd5a04da4d (diff) | |
download | volse-hubzilla-d45df824edaf6f05ca33df31ece56846809685d0.tar.gz volse-hubzilla-d45df824edaf6f05ca33df31ece56846809685d0.tar.bz2 volse-hubzilla-d45df824edaf6f05ca33df31ece56846809685d0.zip |
redbasic: close left aside if hq control button is clicked
Diffstat (limited to 'view')
-rw-r--r-- | view/js/mod_hq.js | 2 | ||||
-rw-r--r-- | view/theme/redbasic/js/redbasic.js | 4 |
2 files changed, 6 insertions, 0 deletions
diff --git a/view/js/mod_hq.js b/view/js/mod_hq.js index 48fbf1f9b..ad77e0af0 100644 --- a/view/js/mod_hq.js +++ b/view/js/mod_hq.js @@ -2,12 +2,14 @@ $(document).ready(function() { $(document).on('click', '.jot-toggle', function(e) { $(window).scrollTop(0); + $(document).trigger('hz:hqControlsClickAction'); $('#jot-popup').toggle(); $('#profile-jot-text').focus(); }); $(document).on('click', '.notes-toggle', function(e) { $(window).scrollTop(0); + $(document).trigger('hz:hqControlsClickAction'); $('#personal-notes').toggleClass('d-none'); $('#note-text').focus(); }); diff --git a/view/theme/redbasic/js/redbasic.js b/view/theme/redbasic/js/redbasic.js index 05f590c53..a354682d7 100644 --- a/view/theme/redbasic/js/redbasic.js +++ b/view/theme/redbasic/js/redbasic.js @@ -108,6 +108,10 @@ $(document).ready(function() { } }); + $(document).on('hz:hqControlsClickAction', function(e) { + toggleAside('left'); + }); + }); function setStyle(element, cssProperty) { |