diff options
author | mjfriaza <mjfriaza@disroot.org> | 2022-05-17 13:44:06 +0200 |
---|---|---|
committer | mjfriaza <mjfriaza@disroot.org> | 2022-05-17 13:44:06 +0200 |
commit | a75c61d71efebf43713026200aa0f513bd7eef09 (patch) | |
tree | 909048adeaa329813e2530d43626ed3bd711bc25 /view/js/mod_hq.js | |
parent | 481ecee9e87342ca7a1217395085e95d1a3b61ea (diff) | |
parent | 0d0f73fb67bbfcc53058cefded85ac36f951c7a7 (diff) | |
download | volse-hubzilla-a75c61d71efebf43713026200aa0f513bd7eef09.tar.gz volse-hubzilla-a75c61d71efebf43713026200aa0f513bd7eef09.tar.bz2 volse-hubzilla-a75c61d71efebf43713026200aa0f513bd7eef09.zip |
Merge remote-tracking branch 'upstream/dev' into dev
Diffstat (limited to 'view/js/mod_hq.js')
-rw-r--r-- | view/js/mod_hq.js | 21 |
1 files changed, 14 insertions, 7 deletions
diff --git a/view/js/mod_hq.js b/view/js/mod_hq.js index b321382bd..5f8430b4d 100644 --- a/view/js/mod_hq.js +++ b/view/js/mod_hq.js @@ -1,10 +1,17 @@ -$(document).on('click', '#jot-toggle', function(e) { - e.preventDefault(); - e.stopPropagation(); +$(document).ready(function() { - $(this).toggleClass('active'); - $(window).scrollTop(0); - $('#jot-popup').toggle(); - $('#profile-jot-text').focus(); + $(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(); + }); }); |