1
0
Fork 0

clearup update backlog after commenting

This commit is contained in:
friendica 2011-12-12 18:08:09 -08:00
parent e67f69df81
commit bda7ca2f36

View file

@ -210,9 +210,15 @@
function liveUpdate() { function liveUpdate() {
if((src == null) || (stopped) || (! profile_uid)) { $('.like-rotator').hide(); return; } if((src == null) || (stopped) || (! profile_uid)) { $('.like-rotator').hide(); return; }
if(($('.comment-edit-text-full').length) || (in_progress)) { if(($('.comment-edit-text-full').length) || (in_progress)) {
if(livetime) {
clearTimeout(livetime);
}
livetime = setTimeout(liveUpdate, 10000); livetime = setTimeout(liveUpdate, 10000);
return; return;
} }
if(livetime != null)
livetime = null;
prev = 'live-' + src; prev = 'live-' + src;
in_progress = true; in_progress = true;