From 8384ba833a750829bce602e76d4921e6776ba09c Mon Sep 17 00:00:00 2001 From: rabuzarus <> Date: Thu, 12 May 2016 20:30:08 +0200 Subject: [PATCH] infinite scroll: include updated code from friendica develop branch --- templates/js_strings.tpl | 9 +++++++++ 1 file changed, 9 insertions(+) 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}}