wesnolte / Pajinate

A jQuery Pagination Plugin
http://th3silverlining.com/2010/04/15/pajination-a-jquery-pagination-plugin/
MIT License
207 stars 97 forks source link

Hidden navigation numbers #49

Open ecSta opened 10 years ago

ecSta commented 10 years ago

Just a tiny issue, am pretty satisfied of your plugin anyway :+1:

If we don't have the same DOM structure as in your examples, navigation numbers are left hidden. In my case, i've nav_panel in a folder 2 children lower. Based on your file not minified, on line 133, it should be :

total_page_no_links = $page_container.find(options.nav_panel_id+':first').children('.page_link').size();

instead of :

total_page_no_links = $page_container.children(options.nav_panel_id+':first').children('.page_link').size();

vhoxha08 commented 10 years ago

nice man, saved me a lot of headache. you could make a pull request of that, it will fix the initial ellipsis bug

dotJoel commented 10 years ago

same here. seems to need this fix. maybe I'll do this as a pull request if it isn't submitted by the time I get a chance to.

I was getting: [prev] ... [next]

After this fix: [prev] ... [1] [2] ... [next]

keeprock commented 9 years ago

Works for me too. Still an issue here.