]> 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 c4173197aa0682b3c672e61c9a38c61b0afe7f5b..066e4bd58525521a8c543ba1cea23d50b7ddc20c 100644 (file)
@@ -1,5 +1,4 @@
 
-
 {{* 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 type="text/javascript">
@@ -7,15 +6,7 @@ They are loaded into the html <head> so that js functions can use them *}}
 
        var localUser = {{if $local_user}}{{$local_user}}{{else}}false{{/if}};
        var aStr = {
-               'delitem'     : "{{$delitem}}",
+               '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>