check for updateCountsOnly in NavUpdate()
This commit is contained in:
parent
8073be87da
commit
455720ae93
@ -375,7 +375,11 @@ function NavUpdate() {
|
|||||||
window.location.href=window.location.href;
|
window.location.href=window.location.href;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(! updateCountsOnly) {
|
||||||
liveUpdateInit();
|
liveUpdateInit();
|
||||||
|
}
|
||||||
|
|
||||||
|
updateCountsOnly = false;
|
||||||
|
|
||||||
if(data.network || data.home || data.intros || data.register || data.mail || data.all_events || data.notify || data.files || data.pubs) {
|
if(data.network || data.home || data.intros || data.register || data.mail || data.all_events || data.notify || data.files || data.pubs) {
|
||||||
$('.notifications-btn').css('opacity', 1);
|
$('.notifications-btn').css('opacity', 1);
|
||||||
@ -677,9 +681,7 @@ function collapseHeight() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function liveUpdateInit() {
|
function liveUpdateInit() {
|
||||||
if(! updateCountsOnly) {
|
|
||||||
// start live update
|
// start live update
|
||||||
|
|
||||||
if($('#live-network').length) { src = 'network'; liveUpdate(); }
|
if($('#live-network').length) { src = 'network'; liveUpdate(); }
|
||||||
if($('#live-channel').length) { src = 'channel'; liveUpdate(); }
|
if($('#live-channel').length) { src = 'channel'; liveUpdate(); }
|
||||||
if($('#live-pubstream').length) { src = 'pubstream'; liveUpdate(); }
|
if($('#live-pubstream').length) { src = 'pubstream'; liveUpdate(); }
|
||||||
@ -696,8 +698,6 @@ function liveUpdateInit() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
updateCountsOnly = false;
|
|
||||||
}
|
|
||||||
|
|
||||||
function liveUpdate() {
|
function liveUpdate() {
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user