From 676a65cd61ec8e52303cc4b21b5e49e514c6ad66 Mon Sep 17 00:00:00 2001 From: Mario Vavti Date: Sat, 17 Jul 2021 14:00:03 +0200 Subject: notifications: move handlers out of jquery ready function otherwise they might not fire on pageload --- view/tpl/notifications_widget.tpl | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'view/tpl') 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}} -- cgit v1.2.3