aboutsummaryrefslogtreecommitdiffstats
path: root/js
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2011-12-12 18:08:09 -0800
committerfriendica <info@friendica.com>2011-12-12 18:08:09 -0800
commitbda7ca2f36ba4b35a9094c08fda356d6f08e67f8 (patch)
tree3e9a3bfb55e3b33f7b94cbec1a5d6e2a106e0083 /js
parente67f69df81eece3a829e62692420459778f05d5a (diff)
downloadvolse-hubzilla-bda7ca2f36ba4b35a9094c08fda356d6f08e67f8.tar.gz
volse-hubzilla-bda7ca2f36ba4b35a9094c08fda356d6f08e67f8.tar.bz2
volse-hubzilla-bda7ca2f36ba4b35a9094c08fda356d6f08e67f8.zip
clearup update backlog after commenting
Diffstat (limited to 'js')
-rw-r--r--js/main.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/js/main.js b/js/main.js
index 2cbd985b2..3f84ae6c4 100644
--- a/js/main.js
+++ b/js/main.js
@@ -210,9 +210,15 @@
function liveUpdate() {
if((src == null) || (stopped) || (! profile_uid)) { $('.like-rotator').hide(); return; }
if(($('.comment-edit-text-full').length) || (in_progress)) {
+ if(livetime) {
+ clearTimeout(livetime);
+ }
livetime = setTimeout(liveUpdate, 10000);
return;
}
+ if(livetime != null)
+ livetime = null;
+
prev = 'live-' + src;
in_progress = true;