mirror of
https://github.com/friendica/friendica
synced 2025-04-25 15:50:10 +00:00
Removing the page number from the infinite scrolling
This commit is contained in:
parent
f1830b84cd
commit
99fc97f337
3 changed files with 1 additions and 7 deletions
|
@ -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;
|
||||
|
@ -893,7 +889,7 @@ function loadScrollContent() {
|
|||
|
||||
// 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_uriid=' + uriid + '&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');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue