This project is read-only.

there is a bug in your paging function for the grid

Dec 31, 2011 at 5:55 AM

in the javascript file [djme-2.min.js]

the line:

    opts.totalpages = parseInt(opts.totalrecords / opts.pagesize) + (opts.totalpages % opts.pagesize ? 1 : 0);

this should be change to:

  opts.totalpages = parseInt(opts.totalrecords / opts.pagesize) + (opts.totalrecords  % opts.pagesize ? 1 : 0);

 

you should replace [totalpages]  with [totalrecords].

==> the problem is the total pages is always wrong  (1 number less than what it should be.