st3ph / jquery.easyPaginate

jQuery plugin to paginate anything with cool effect (or not)
MIT License
45 stars 74 forks source link

navigation next not work #4

Closed azarzaza closed 7 years ago

azarzaza commented 7 years ago

navigation previous and next not working when click it will reload the page

mvosz commented 7 years ago

jupp, same problem

ecarpio commented 7 years ago

Same problem - I guess there's no support for this plugin

st3ph commented 7 years ago

As it's the first time this kind of bug is reported, please consider adding more details of your settings and how to reproduce the problem

ecarpio commented 7 years ago

Right now when I click on next or previous it reloads the entire page. Clicking on the numbers and first and last page is OK. Clicking on Previous and Next Reloads entire page. I placed a break point on the on the NEXT click event and It looks like its skipping that function when I click on Next or previous. But it does hit the breakpoint when the page is first loaded.

This function does not fire on click. $(elSelector + ' .easyPaginateNav a.next', plugin).on('click', function (e) { e.preventDefault(); page = plugin.settings.currentPage < plugin.settings.pages ? parseInt(plugin.settings.currentPage) + 1 : plugin.settings.pages; displayPage(page); });

ecarpio commented 7 years ago

I used the JS file from your demo page and it works.

you might want to diff your source file on github

sed8908 commented 7 years ago

I was experiencing that problem as well. I went in and on lines 96 and 102 and I removed ", plugin" from both lines. That seems to have fixed the problem I was experiencing. Let me know if this change fixes it for anyone else.

st3ph commented 7 years ago

Fixed with version 1.2 (and current master)