diff options
author | Mario Vavti <mario@mariovavti.com> | 2017-11-29 11:22:59 +0100 |
---|---|---|
committer | Mario Vavti <mario@mariovavti.com> | 2017-11-29 11:22:59 +0100 |
commit | e6a59ad36fcdbe4dcb534ff700663d9588b5d734 (patch) | |
tree | a8876e58c1d6e229fd127c543987926869c3c8da /view/js/main.js | |
parent | e375224dfec3706b32bc840337f0b6f546708ace (diff) | |
download | volse-hubzilla-e6a59ad36fcdbe4dcb534ff700663d9588b5d734.tar.gz volse-hubzilla-e6a59ad36fcdbe4dcb534ff700663d9588b5d734.tar.bz2 volse-hubzilla-e6a59ad36fcdbe4dcb534ff700663d9588b5d734.zip |
allow an optional notify_id arg for liveUpdate()
Diffstat (limited to 'view/js/main.js')
-rw-r--r-- | view/js/main.js | 11 |
1 files changed, 10 insertions, 1 deletions
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.'); |