diff options
author | nobody <nobody@zotlabs.com> | 2021-07-06 05:02:52 -0700 |
---|---|---|
committer | nobody <nobody@zotlabs.com> | 2021-07-06 05:02:52 -0700 |
commit | 73b53675b1a339cfd950845279438e35b4e2dc7c (patch) | |
tree | 6b433b3f21585230bfbc71d955c8a8bcc82dd5e8 /view/js/mod_hq.js | |
parent | efda8aac1d7d90fd7eda4a449332eedf74342951 (diff) | |
parent | 9b9ac5054fcc424a556f366284501882b1e02e9e (diff) | |
download | volse-hubzilla-73b53675b1a339cfd950845279438e35b4e2dc7c.tar.gz volse-hubzilla-73b53675b1a339cfd950845279438e35b4e2dc7c.tar.bz2 volse-hubzilla-73b53675b1a339cfd950845279438e35b4e2dc7c.zip |
Merge branch 'dev' of https://framagit.org/hubzilla/core into dev
Diffstat (limited to 'view/js/mod_hq.js')
-rw-r--r-- | view/js/mod_hq.js | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/view/js/mod_hq.js b/view/js/mod_hq.js index 0a3939913..ad77e0af0 100644 --- a/view/js/mod_hq.js +++ b/view/js/mod_hq.js @@ -1,13 +1,25 @@ $(document).ready(function() { - $(document).on('click', '#jot-toggle', function(e) { + $(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) { + $(document).on('click', '.notes-toggle', function(e) { $(window).scrollTop(0); + $(document).trigger('hz:hqControlsClickAction'); $('#personal-notes').toggleClass('d-none'); + $('#note-text').focus(); + }); + + $(document).on('hz:handleNetworkNotificationsItems', function(e, obj) { + push_notification( + obj.name, + $('<p>' + obj.message + '</p>').text(), + baseurl + '/hq/' + obj.b64mid + ); }); }); |