diff options
author | Mario Vavti <mario@mariovavti.com> | 2021-07-17 14:00:03 +0200 |
---|---|---|
committer | Mario Vavti <mario@mariovavti.com> | 2021-07-17 14:00:03 +0200 |
commit | 676a65cd61ec8e52303cc4b21b5e49e514c6ad66 (patch) | |
tree | 55a2dd40af040bff81854456c28fc2f0843f2ae9 /view | |
parent | 95fb66b4332452e4cb0c45e6cceb3d77656e8b30 (diff) | |
download | volse-hubzilla-676a65cd61ec8e52303cc4b21b5e49e514c6ad66.tar.gz volse-hubzilla-676a65cd61ec8e52303cc4b21b5e49e514c6ad66.tar.bz2 volse-hubzilla-676a65cd61ec8e52303cc4b21b5e49e514c6ad66.zip |
notifications: move handlers out of jquery ready function otherwise they might not fire on pageload
Diffstat (limited to 'view')
-rw-r--r-- | view/tpl/notifications_widget.tpl | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/view/tpl/notifications_widget.tpl b/view/tpl/notifications_widget.tpl index 2a4651c99..268c2b38c 100644 --- a/view/tpl/notifications_widget.tpl +++ b/view/tpl/notifications_widget.tpl @@ -137,18 +137,18 @@ } }); - $(document).on('hz:sse_setNotificationsStatus', function(e, data) { - sse_setNotificationsStatus(data); - }); + }); - $(document).on('hz:sse_bs_init', function() { - sse_bs_init(); - }); + $(document).on('hz:sse_setNotificationsStatus', function(e, data) { + sse_setNotificationsStatus(data); + }); - $(document).on('hz:sse_bs_counts', function() { - sse_bs_counts(); - }); + $(document).on('hz:sse_bs_init', function() { + sse_bs_init(); + }); + $(document).on('hz:sse_bs_counts', function() { + sse_bs_counts(); }); {{foreach $notifications as $notification}} |