mirror of
https://github.com/friendica/friendica
synced 2025-04-26 07:50:15 +00:00
Fix the erratic page update behaviour
This commit is contained in:
parent
aa6eb7fcf1
commit
e038890bb7
9 changed files with 107 additions and 49 deletions
|
@ -608,6 +608,26 @@ function liveUpdate(src) {
|
|||
update_url += '&max_id=' + getUrlParameter('max_id');
|
||||
}
|
||||
|
||||
match = $("span.received").first();
|
||||
if (match.length > 0) {
|
||||
update_url += '&first_received=' + match[0].innerHTML;
|
||||
}
|
||||
|
||||
match = $("span.created").first();
|
||||
if (match.length > 0) {
|
||||
update_url += '&first_created=' + match[0].innerHTML;
|
||||
}
|
||||
|
||||
match = $("span.commented").first();
|
||||
if (match.length > 0) {
|
||||
update_url += '&first_commented=' + match[0].innerHTML;
|
||||
}
|
||||
|
||||
match = $("span.uriid").first();
|
||||
if (match.length > 0) {
|
||||
update_url += '&first_uriid=' + match[0].innerHTML;
|
||||
}
|
||||
|
||||
$.get(update_url, function(data) {
|
||||
in_progress = false;
|
||||
update_item = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue