]> git.mxchange.org Git - friendica.git/blob - view/theme/frio/templates/js_strings.tpl
Merge pull request #4959 from koyuawsmbrtn/develop
[friendica.git] / view / theme / frio / templates / js_strings.tpl
1
2
3 {{* Strings which are needed for some js functions (e.g. translation or the interval for page update)
4 They are loaded into the html <head> so that js functions can use them *}}
5 <script type="text/javascript">
6         var updateInterval = {{$update_interval}};
7
8         var localUser = {{if $local_user}}{{$local_user}}{{else}}false{{/if}};
9         var aStr = {
10                 'delitem'     : "{{$delitem}}",
11         };
12
13         {{* Create an object with the data which is needed for infinite scroll.
14         For the relevant js part look at function loadContent() in main.js. *}}
15         {{if $infinite_scroll}}
16         var infinite_scroll = {
17                                 'pageno'        : {{$infinite_scroll.pageno}},
18                                 'reload_uri'    : "{{$infinite_scroll.reload_uri}}"
19                                 }
20         {{/if}}
21 </script>