aboutsummaryrefslogtreecommitdiffstats
path: root/view/main_slider.tpl
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-07-25 19:45:45 -0700
committerfriendica <info@friendica.com>2012-07-25 19:45:45 -0700
commit21b3dc9c27be50e73944eaec97001ad1279400f1 (patch)
treeb006c49eb79663b3f35b69098cbec3b35618103d /view/main_slider.tpl
parentfc53a7a09ed16504ae88b064640c91882c34ef8b (diff)
downloadvolse-hubzilla-21b3dc9c27be50e73944eaec97001ad1279400f1.tar.gz
volse-hubzilla-21b3dc9c27be50e73944eaec97001ad1279400f1.tar.bz2
volse-hubzilla-21b3dc9c27be50e73944eaec97001ad1279400f1.zip
tie the main slider to ajax updates and buildCmd
Diffstat (limited to 'view/main_slider.tpl')
-rw-r--r--view/main_slider.tpl6
1 files changed, 4 insertions, 2 deletions
diff --git a/view/main_slider.tpl b/view/main_slider.tpl
index 19d6fb15a..6f2b5f4a3 100644
--- a/view/main_slider.tpl
+++ b/view/main_slider.tpl
@@ -11,10 +11,12 @@
function networkRefresh() {
if((document.readyState !== "complete") || (slideTimer !== null))
return;
- slideTimer = setTimeout(networkTimerRefresh,5000);
+ slideTimer = setTimeout(networkTimerRefresh,2000);
}
function networkTimerRefresh() {
- window.location.href = buildCmd();
+ slideTimer = null;
+ page_load = true;
+ liveUpdate();
}
</script>