From e6a59ad36fcdbe4dcb534ff700663d9588b5d734 Mon Sep 17 00:00:00 2001 From: Mario Vavti Date: Wed, 29 Nov 2017 11:22:59 +0100 Subject: allow an optional notify_id arg for liveUpdate() --- view/tpl/notifications_widget.tpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'view/tpl') diff --git a/view/tpl/notifications_widget.tpl b/view/tpl/notifications_widget.tpl index e8d51caca..60acb1654 100644 --- a/view/tpl/notifications_widget.tpl +++ b/view/tpl/notifications_widget.tpl @@ -59,7 +59,7 @@ mode = 'replace'; page_load = true; {{if $module == 'hq'}} - hqLiveUpdate(notify_id); + liveUpdate(notify_id); {{/if}} {{if $module == 'display'}} liveUpdate(); -- cgit v1.2.3 From bc0f4b4fa5dc80f314eb72256c17051b66ba3979 Mon Sep 17 00:00:00 2001 From: Mario Vavti Date: Wed, 29 Nov 2017 11:26:33 +0100 Subject: an additional on touch event might improve things for mobile handling --- view/tpl/notifications_widget.tpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'view/tpl') diff --git a/view/tpl/notifications_widget.tpl b/view/tpl/notifications_widget.tpl index 60acb1654..18f3ef12d 100644 --- a/view/tpl/notifications_widget.tpl +++ b/view/tpl/notifications_widget.tpl @@ -22,7 +22,7 @@ }); {{if $module == 'display' || $module == 'hq'}} - $(document).on('click', '.notification', function(e) { + $(document).on('click touch', '.notification', function(e) { var b64mid = $(this).data('b64mid'); var notify_id = $(this).data('notify_id'); var path = $(this)[0].pathname.substr(1,7); -- cgit v1.2.3