Skip to content

Commit

Permalink
Merge pull request #24 from moorecp/master
Browse files Browse the repository at this point in the history
Navigation is not properly built when the navigation container is not a direct child of the page container.
  • Loading branch information
wesnolte committed Jan 1, 2013
2 parents d6ef6bf + 26c1451 commit 15f5b7c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion examples/js/jquery.pajinate.js
Expand Up @@ -129,7 +129,7 @@

/* Setup Nav Menu Display */
// Page number slices
total_page_no_links = $page_container.children(options.nav_panel_id + ':first').children('.page_link').size();
total_page_no_links = $page_container.find(options.nav_panel_id + ':first').children('.page_link').size();
options.num_page_links_to_display = Math.min(options.num_page_links_to_display, total_page_no_links);

$nav_panels.children('.page_link').hide(); // Hide all the page links
Expand Down
2 changes: 1 addition & 1 deletion jquery.pajinate.js
Expand Up @@ -129,7 +129,7 @@

/* Setup Nav Menu Display */
// Page number slices
total_page_no_links = $page_container.children(options.nav_panel_id + ':first').children('.page_link').size();
total_page_no_links = $page_container.find(options.nav_panel_id + ':first').children('.page_link').size();
options.num_page_links_to_display = Math.min(options.num_page_links_to_display, total_page_no_links);

$nav_panels.children('.page_link').hide(); // Hide all the page links
Expand Down
2 changes: 1 addition & 1 deletion jquery.pajinate.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 15f5b7c

Please sign in to comment.