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/js/main.js | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'view/js/main.js') diff --git a/view/js/main.js b/view/js/main.js index 84a963d3f..c9bde8452 100644 --- a/view/js/main.js +++ b/view/js/main.js @@ -692,7 +692,7 @@ function updateInit() { } } -function liveUpdate() { +function liveUpdate(notify_id) { if(typeof profile_uid === 'undefined') profile_uid = false; /* Should probably be unified with channelId defined in head.tpl */ @@ -762,6 +762,15 @@ function liveUpdate() { // else data was valid - reset the recursion counter liveRecurse = 0; + if(notify_id !== 'undefined') { + $.post( + "hq", + { + "notify_id" : notify_id + } + ); + } + var dready = new Date(); console.log('DATA ready in: ' + (dready - dstart)/1000 + ' seconds.'); -- cgit v1.2.3