]> git.mxchange.org Git - friendica.git/blob - view/theme/frio/templates/js_strings.tpl
make erromessages translateable
[friendica.git] / view / theme / frio / templates / js_strings.tpl
1
2 {{* Strings which are needed for some js functions (e.g. translation or the interval for page update)
3 They are loaded into the html <head> so that js functions can use them *}}
4 <script type="text/javascript">
5         var updateInterval = {{$update_interval}};
6
7         var localUser = {{if $local_user}}{{$local_user}}{{else}}false{{/if}};
8         var aStr = {
9                 'delitem'      : "{{$delitem|escape:'javascript' nofilter}}",
10                 'blockAuthor'  : "{{$blockAuthor|escape:'javascript' nofilter}}",
11                 'ignoreAuthor' : "{{$ignoreAuthor|escape:'javascript' nofilter}}",
12         };
13         var aActNetErr = {
14                'like'         : "{{$likeNetError}}",                                                                                                                                                             
15                'dislike'      : "{{$dislikeNetError}}",
16                'announce'     : "{{$annonNetError}}",
17         };
18         var aActSrvErr = {
19                'like'         : "{{$likeSrvError}}",
20                'dislike'      : "{{$dislikeSrvError}}",
21                'announce'     : "{{$annonSrvError}}",
22         };
23 </script>