friendica/view/theme/frio/templates/js_strings.tpl

23 lines
887 B
Smarty
Raw Normal View History

{{* Strings which are needed for some js functions (e.g. translation or the interval for page update)
They are loaded into the html <head> so that js functions can use them *}}
2017-10-20 09:21:42 -04:00
<script type="text/javascript">
var updateInterval = {{$update_interval}};
var localUser = {{if $local_user}}{{$local_user}}{{else}}false{{/if}};
var aStr = {
2023-01-09 11:23:39 -05:00
'delitem' : "{{$delitem|escape:'javascript' nofilter}}",
'blockAuthor' : "{{$blockAuthor|escape:'javascript' nofilter}}",
'ignoreAuthor' : "{{$ignoreAuthor|escape:'javascript' nofilter}}",
};
2023-03-11 13:23:48 -05:00
var aActErr = {
'like' : "{{$likeError}}",
'dislike' : "{{$dislikeError}}",
'announce' : "{{$announceError}}",
2023-03-11 11:26:00 -05:00
};
2023-03-11 13:23:48 -05:00
var aErrType = {
'srvErr' : "{{$srvError}}",
'netErr' : "{{$netError}}",
2023-03-11 11:26:00 -05:00
};
</script>