aboutsummaryrefslogtreecommitdiffstats
path: root/view
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2016-11-01 20:21:39 -0700
committerzotlabs <mike@macgirvin.com>2016-11-01 20:21:39 -0700
commitca948d66a901677665c7a5983dc438918d7fb1c9 (patch)
tree93c97a7d61a80418cab6cf68ad322e784ab121a5 /view
parentfa8cb40af0457ed9ad418be2ba64dc221cbaa842 (diff)
downloadvolse-hubzilla-ca948d66a901677665c7a5983dc438918d7fb1c9.tar.gz
volse-hubzilla-ca948d66a901677665c7a5983dc438918d7fb1c9.tar.bz2
volse-hubzilla-ca948d66a901677665c7a5983dc438918d7fb1c9.zip
feature: static page update as opposed to live update of conversations on the page. Changes will be queued until the page is reloaded. There may or may not be notifications of pending activity updates depending on your notification preferences. Endless scrolling (append) is still performed either way. This only affects changed and new/unseen items being inserted into the page.
Diffstat (limited to 'view')
-rw-r--r--view/js/main.js7
-rwxr-xr-xview/tpl/build_query.tpl1
2 files changed, 8 insertions, 0 deletions
diff --git a/view/js/main.js b/view/js/main.js
index 5435dfd87..0aee072f6 100644
--- a/view/js/main.js
+++ b/view/js/main.js
@@ -754,6 +754,13 @@ function liveUpdate() {
update_mode = 'append';
}
else {
+ if(bParam_static) {
+ in_progress = false;
+ if(timer) clearTimeout(timer);
+ timer = setTimeout(NavUpdate,10000);
+ return;
+ }
+
update_mode = 'update';
var orgHeight = $("#region_2").height();
}
diff --git a/view/tpl/build_query.tpl b/view/tpl/build_query.tpl
index 62f81b618..f3e4f79e2 100755
--- a/view/tpl/build_query.tpl
+++ b/view/tpl/build_query.tpl
@@ -17,6 +17,7 @@
var bParam_wall = {{$wall}};
var bParam_list = {{$list}};
var bParam_fh = {{$fh}};
+ var bParam_static = {{$static}};
var bParam_search = "{{$search}}";
var bParam_order = "{{$order}}";