X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=view%2Ftemplates%2Fhead.tpl;h=cd6bc52a0f79c03bf298482dc84ddb38b4dbbbbf;hb=eedeb3d5881e9d174e242fc157fe0d725c1127a9;hp=fdf9a7716e0572c35bfc68c3cee7ff532ec4dd54;hpb=2eb461ed2cc3043ca238fb0f629e303f0c4c8756;p=friendica.git diff --git a/view/templates/head.tpl b/view/templates/head.tpl index fdf9a7716e..cd6bc52a0f 100644 --- a/view/templates/head.tpl +++ b/view/templates/head.tpl @@ -7,6 +7,7 @@ + @@ -17,12 +18,15 @@ - - + + - + + @@ -47,6 +52,15 @@ var updateInterval = {{$update_interval}}; var localUser = {{if $local_user}}{{$local_user}}{{else}}false{{/if}}; + {{* 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}} + function confirmDelete() { return confirm("{{$delitem}}"); } function commentExpand(id) { $("#comment-edit-text-" + id).value = '';