From bda7ca2f36ba4b35a9094c08fda356d6f08e67f8 Mon Sep 17 00:00:00 2001 From: friendica Date: Mon, 12 Dec 2011 18:08:09 -0800 Subject: [PATCH] clearup update backlog after commenting --- js/main.js | 6 ++++++ 1 file changed, 6 insertions(+) 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;