]> git.mxchange.org Git - friendica.git/blobdiff - view/theme/frio/templates/js_strings.tpl
Fix review points
[friendica.git] / view / theme / frio / templates / js_strings.tpl
index 3bec57a9df0714fccd16c6d4e43cfdd90af809c4..066e4bd58525521a8c543ba1cea23d50b7ddc20c 100644 (file)
@@ -1,22 +1,12 @@
 
-
 {{* 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 *}}
-<script>
+<script type="text/javascript">
        var updateInterval = {{$update_interval}};
 
        var localUser = {{if $local_user}}{{$local_user}}{{else}}false{{/if}};
        var aStr = {
-               'delitem'     : "{{$delitem}}",
-               'comment'     : "{{$comment}}"
+               'delitem'     : "{{$delitem|escape:'javascript' nofilter}}",
+               'blockAuthor' : "{{$blockAuthor|escape:'javascript' nofilter}}",
        };
-
-       {{* 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}}
 </script>