allow an optional notify_id arg for liveUpdate()

This commit is contained in:
Mario Vavti
2017-11-29 11:22:59 +01:00
parent e375224dfe
commit e6a59ad36f
3 changed files with 11 additions and 128 deletions

View File

@@ -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.');