X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=view%2Fjs%2Fmain.js;h=35a0529a0e0e7e118c71befc5a635a6c28349bfc;hb=d9658f42e7b7fb6630141c3f354ed59cfe98a6d1;hp=36c9cbb88d75dd0c9e3b12f3b2bc0a41b1f2beb2;hpb=74bc3de4723af3f2bf61705edba090caa102d171;p=friendica.git diff --git a/view/js/main.js b/view/js/main.js index 36c9cbb88d..35a0529a0e 100644 --- a/view/js/main.js +++ b/view/js/main.js @@ -859,10 +859,6 @@ function loadScrollContent() { $("#scroll-loader").fadeIn('normal'); - // the page number to load is one higher than the actual - // page number - infinite_scroll.pageno+=1; - match = $("span.received").last(); if (match.length > 0) { received = match[0].innerHTML; @@ -884,16 +880,16 @@ function loadScrollContent() { commented = "0000-00-00 00:00:00"; } - match = $("span.id").last(); + match = $("span.uriid").last(); if (match.length > 0) { - id = match[0].innerHTML; + uriid = match[0].innerHTML; } else { - id = "0"; + uriid = "0"; } // get the raw content from the next page and insert this content // right before "#conversation-end" - $.get(infinite_scroll.reload_uri + '&mode=raw&last_received=' + received + '&last_commented=' + commented + '&last_created=' + created + '&last_id=' + id + '&page=' + infinite_scroll.pageno, function(data) { + $.get(infinite_scroll.reload_uri + '&mode=raw&last_received=' + received + '&last_commented=' + commented + '&last_created=' + created + '&last_uriid=' + uriid, function(data) { $("#scroll-loader").hide(); if ($(data).length > 0) { $(data).insertBefore('#conversation-end');