mirror of
https://github.com/friendica/friendica
synced 2025-04-25 09:10:11 +00:00
Move community module to src/
- Use boundaries pagination instead of number pages - Trim down community update module output - Part of https://github.com/friendica/friendica/issues/4090
This commit is contained in:
parent
5d169a4098
commit
682fb7e4e2
5 changed files with 361 additions and 269 deletions
|
@ -527,6 +527,8 @@ function updateConvItems(data) {
|
|||
// Add new top-level item.
|
||||
if ($('#' + ident).length === 0
|
||||
&& (!getUrlParameter('page')
|
||||
&& !getUrlParameter('max_id')
|
||||
&& !getUrlParameter('since_id')
|
||||
|| getUrlParameter('page') === '1'
|
||||
)
|
||||
) {
|
||||
|
@ -597,6 +599,12 @@ function liveUpdate(src) {
|
|||
if (getUrlParameter('page')) {
|
||||
update_url += '&page=' + getUrlParameter('page');
|
||||
}
|
||||
if (getUrlParameter('since_id')) {
|
||||
update_url += '&since_id=' + getUrlParameter('since_id');
|
||||
}
|
||||
if (getUrlParameter('max_id')) {
|
||||
update_url += '&max_id=' + getUrlParameter('max_id');
|
||||
}
|
||||
|
||||
$.get(update_url,function(data) {
|
||||
in_progress = false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue