friendica_2021-01/view/templates/infinite_scroll_head.tpl
Hypolite Petovan 14237a9599 Move $pager and $page_offset out of App
- Move infinite scroll data output in a module hook
- Use Pager instead of paginate() and alt_pager()
2018-10-25 00:07:15 -04:00

9 lines
255 B
Smarty

<script>
{{* Create an object with the data which is needed for infinite scroll.
For the relevant js part look at function loadContent() in main.js. *}}
var infinite_scroll = {
"pageno" : {{$pageno}},
"reload_uri": "{{$reload_uri}}"
}
</script>