Closed Nevon closed 13 years ago
Very cool, nice feature. Thanks!
Just remember to update the docs to reflect this change. It's set to false by default, so it shouldn't lead to any unexpected surprises. But it's still a good idea to be thorough.
I changed it so now it works in reverse too i.e. prev will send you to the last page if the active page is the first page. I also added an option to remove the first and last navigation items.
A client wanted me to make the pagination wrap around after having reached the last page, so I figured I'd push the changes back upstream. I've simply added an option called wrap_around. If true, showNextPage() will go to page 0 after having reached the last page.
It doesn't make a whole lot of sense if you're using it for traditional paging with numbers and stuff, but in a situation like this, it makes quite a bit of sense.