Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Pagination error #2

Closed
marcos-borunda opened this Issue · 7 comments

4 participants

@marcos-borunda

When you pass the itemPerPage attribute it works at first, but if you try to go to the next page it will show every element in the list, then if you keep going through pages it will take out "itemPerPage" elements.

@marcos-borunda

p.s. Thanks for sharing this great code! my javascript/jQuery skills aren't that good that's why I wasn't able to contribute fixing it :S

@taitems
Owner

Hi, is there any chance this issue is still occurring? I just pushed an update that should resolve other paging issues. If not, I'll close this. Tait.

@usmonster
Collaborator

@marcos-borunda Can it be assumed that this has been fixed for you? If so, this issue can be closed. Thanks!

@marcos-borunda

@usmonster I haven't tested new releases. At the moment I don't have time to check, but let me test it this weekend and I'll let you know.

@usmonster
Collaborator

@marcos-borunda I'll assume this issue has been resolved and close it, but feel free to comment here if that's not the case and it can be reopened. Thanks!

@usmonster usmonster closed this
@RafaelVRam

hi i just downloaded the plugin from this url:https://github.com/taitems/jQuery.Gantt/blob/master/js/jquery.fn.gantt.js

and this error keeps happening, I ventured to try to correct the error, and I found myself on the line 330 is the if statement that the number of rows is responsible to paint.
The problem is that in this condition, "adding" varibles strings so does not work correctly the if condition, it resolved as follows:

if (i >= element.pageNum * parseInt(settings.itemsPerPage) && i < (element.pageNum * parseInt(settings.itemsPerPage) + parseInt(settings.itemsPerPage)))

but this genre a new error in the row of the year I paint the temporal timeline, someone could tell me how to fix this error?
thanks

@usmonster
Collaborator

@RafaelVRam thanks for finding this again. I was never able to see the bug. Can you make an example JSBin or JSFiddle to show what happens with the current code?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.