]> git.mxchange.org Git - friendica.git/blob - view/theme/frio/templates/js_strings.tpl
Merge branch 'master' of ../save/merge/frio into frio_merge
[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>
6         var updateInterval = {{$update_interval}};
7
8         var localUser = {{if $local_user}}{{$local_user}}{{else}}false{{/if}};
9         var aStr = {
10                 'delitem'     : "{{$delitem}}",
11                 'comment'     : "{{$comment}}"
12         };
13
14         {{* Create an object with the data which is needed for infinite scroll.
15         For the relevant js part look at function loadContent() in main.js. *}}
16         {{if $infinite_scroll}}
17         var infinite_scroll = {
18                                 'pageno'        : {{$infinite_scroll.pageno}},
19                                 'reload_uri'    : "{{$infinite_scroll.reload_uri}}"
20                                 }
21         {{/if}}
22 </script>