Move $pager and $page_offset out of App
- Move infinite scroll data output in a module hook - Use Pager instead of paginate() and alt_pager()
This commit is contained in:
parent
a976a4cb68
commit
14237a9599
29 changed files with 234 additions and 385 deletions
|
@ -48,15 +48,6 @@
|
|||
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 = "";
|
||||
|
|
8
view/templates/infinite_scroll_head.tpl
Normal file
8
view/templates/infinite_scroll_head.tpl
Normal file
|
@ -0,0 +1,8 @@
|
|||
<script>
|
||||
{{* Create an object with the data which is needed for infinite scroll.
|
||||
For the relevant js part look at function loadContent() in main.js. *}}
|
||||
var infinite_scroll = {
|
||||
"pageno" : {{$pageno}},
|
||||
"reload_uri": "{{$reload_uri}}"
|
||||
}
|
||||
</script>
|
Loading…
Add table
Add a link
Reference in a new issue