aboutsummaryrefslogtreecommitdiffstats
path: root/view/js/mod_hq.js
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2021-06-24 19:31:19 +0000
committerMario <mario@mariovavti.com>2021-06-24 19:31:19 +0000
commit167db22e15c72c32cd67ce1a2b242dc4527e0b64 (patch)
tree5838e2d84860366a9fdb6a68dc92aeb692306c60 /view/js/mod_hq.js
parent108777251e4d5f61c9fa344f7a19c31a1b12fb44 (diff)
downloadvolse-hubzilla-167db22e15c72c32cd67ce1a2b242dc4527e0b64.tar.gz
volse-hubzilla-167db22e15c72c32cd67ce1a2b242dc4527e0b64.tar.bz2
volse-hubzilla-167db22e15c72c32cd67ce1a2b242dc4527e0b64.zip
slightly refactor for desktop notifications and fix minor issues
Diffstat (limited to 'view/js/mod_hq.js')
-rw-r--r--view/js/mod_hq.js7
1 files changed, 5 insertions, 2 deletions
diff --git a/view/js/mod_hq.js b/view/js/mod_hq.js
index 362045412..7583a4ddd 100644
--- a/view/js/mod_hq.js
+++ b/view/js/mod_hq.js
@@ -1,15 +1,18 @@
$(document).ready(function() {
- $(document).on('click', '#jot-toggle', function(e) {
+ $(document).on('click', '.jot-toggle', function(e) {
$(window).scrollTop(0);
$('#jot-popup').toggle();
$('#profile-jot-text').focus();
});
- $(document).on('click', '#notes-toggle', function(e) {
+ $(document).on('click', '.notes-toggle', function(e) {
$(window).scrollTop(0);
$('#personal-notes').toggleClass('d-none');
$('#note-text').focus();
});
+ $(document).on('hz:handleNetworkNotificationsItems', function(e, obj) {
+ push_notification(obj.message, obj.name);
+ });
});