aboutsummaryrefslogtreecommitdiffstats
path: root/view/js/mod_hq.js
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2021-07-29 06:59:13 +0000
committerMario <mario@mariovavti.com>2021-07-29 06:59:13 +0000
commit9722d157bf138753bc168f68c56b4963db6da4e9 (patch)
treea15bb81c35a2367fe4628614471d471ed86d2712 /view/js/mod_hq.js
parent219d47f04c7bb04dcc241b9ed6ca411fc9653f09 (diff)
parentc6133d2558ce29e44342fa7be8bb65e0059aea02 (diff)
downloadvolse-hubzilla-9722d157bf138753bc168f68c56b4963db6da4e9.tar.gz
volse-hubzilla-9722d157bf138753bc168f68c56b4963db6da4e9.tar.bz2
volse-hubzilla-9722d157bf138753bc168f68c56b4963db6da4e9.zip
Merge branch 'dev' into bs5
Diffstat (limited to 'view/js/mod_hq.js')
-rw-r--r--view/js/mod_hq.js31
1 files changed, 23 insertions, 8 deletions
diff --git a/view/js/mod_hq.js b/view/js/mod_hq.js
index b321382bd..ad77e0af0 100644
--- a/view/js/mod_hq.js
+++ b/view/js/mod_hq.js
@@ -1,10 +1,25 @@
-$(document).on('click', '#jot-toggle', function(e) {
- e.preventDefault();
- e.stopPropagation();
-
- $(this).toggleClass('active');
- $(window).scrollTop(0);
- $('#jot-popup').toggle();
- $('#profile-jot-text').focus();
+$(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();
+ });
+
+ $(document).on('hz:handleNetworkNotificationsItems', function(e, obj) {
+ push_notification(
+ obj.name,
+ $('<p>' + obj.message + '</p>').text(),
+ baseurl + '/hq/' + obj.b64mid
+ );
+ });
});