Fixed pager limit calculation
This commit is contained in:
parent
b80ec3fdb4
commit
dcfcc459a1
|
@ -21,7 +21,7 @@ return function(widget,list,max_elements)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
function new_pager:next()
|
function new_pager:next()
|
||||||
if #list >= self.index*self.max then
|
if #list >= (self.index+1)*self.max then
|
||||||
self.index = self.index + 1
|
self.index = self.index + 1
|
||||||
new_pager:update()
|
new_pager:update()
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue