1
0
Fork 0

infinite_scroll: move js from index.php to main.js

This commit is contained in:
rabuzarus 2016-05-11 01:52:05 +02:00
commit d454905d3c
4 changed files with 95 additions and 65 deletions

View file

@ -48,6 +48,15 @@
var updateInterval = {{$update_interval}};
var localUser = {{if $local_user}}{{$local_user}}{{else}}false{{/if}};
{{* 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}}
function confirmDelete() { return confirm("{{$delitem}}"); }
function commentExpand(id) {
$("#comment-edit-text-" + id).value = '';