From: rabuzarus <> Date: Thu, 12 May 2016 18:30:08 +0000 (+0200) Subject: infinite scroll: include updated code from friendica develop branch X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=8384ba833a750829bce602e76d4921e6776ba09c;p=friendica.git infinite scroll: include updated code from friendica develop branch --- diff --git a/templates/js_strings.tpl b/templates/js_strings.tpl index 0535c70562..3bec57a9df 100644 --- a/templates/js_strings.tpl +++ b/templates/js_strings.tpl @@ -10,4 +10,13 @@ They are loaded into the html so that js functions can use them *}} 'delitem' : "{{$delitem}}", 'comment' : "{{$comment}}" }; + + {{* Create an object with the data which is needed for infinite scroll. + For the relevant js part look at function loadContent() in main.js. *}} + {{if $infinite_scroll}} + var infinite_scroll = { + 'pageno' : {{$infinite_scroll.pageno}}, + 'reload_uri' : "{{$infinite_scroll.reload_uri}}" + } + {{/if}}