rejetto forum

Software => HFS ~ HTTP File Server => Topic started by: __Lopho on March 10, 2017, 03:09:35 AM

Title: Results per page?
Post by: __Lopho on March 10, 2017, 03:09:35 AM
How can I increase from 25 to 50 or more?
Title: Re: Results per page?
Post by: bmartino1 on March 10, 2017, 08:44:42 AM
more what
????
Title: Re: Results per page?
Post by: Mars on March 10, 2017, 02:38:33 PM
The number of files displayed is calculated automatically to fit on the web page, so if you play on the zoom of the page and update it, the number will not be the same.

Everything happens in the pageit() function of the template in the line
  var rows = $('#files tr');

if you want to change it insert this line just under the previous

rows = 50;


Quote
function pageIt(anim) {
    var rows = $('#files tr');
    rows = 50;
    if (!rows.size()) return;
    page = 0; // this is global


To modify the template in this way is quite simple but I prefer a similar solution that allows to master the values to modify

To obtain the desired result, without losing the advantage of automating pages, we will introduce two additional parameters in this case: the number of files per page option.perpage=50 and an automation option.autopaged=(0 or 1)

Quote
[+special:strings]
option.paged=1
option.autopaged=0
option.perpage=50

Quote
function pageIt(anim) {
    var rows = $('#files tr');
    if (!{.!option.autopaged.}) rows = {.!option.perpage.};
    if (!rows.size()) return;
    page = 0; // this is global

Change the value of auto.paged to 1 and the default paging works again  ;)