]> git.mxchange.org Git - friendica.git/commitdiff
infinite scroll: include updated code from friendica develop branch
authorrabuzarus <>
Thu, 12 May 2016 18:30:08 +0000 (20:30 +0200)
committerrabuzarus <>
Thu, 12 May 2016 18:30:08 +0000 (20:30 +0200)
templates/js_strings.tpl

index 0535c70562c16af3a9fef431103597fb0c04fca3..3bec57a9df0714fccd16c6d4e43cfdd90af809c4 100644 (file)
@@ -10,4 +10,13 @@ They are loaded into the html <head> 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}}
 </script>