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
|
@ -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">
|
||||
|
@ -9,13 +8,4 @@ They are loaded into the html <head> so that js functions can use them *}}
|
|||
var aStr = {
|
||||
'delitem' : "{{$delitem}}",
|
||||
};
|
||||
|
||||
{{* 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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue