Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed $nav_panels variable usage (instead of navigating from parent containers) #27

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions jquery.pajinate.js
Original file line number Diff line number Diff line change
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 = $nav_panels.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 Expand Up @@ -224,7 +224,7 @@
items.show();

// Reassign the active class
$page_container.find(options.nav_panel_id).children('.page_link[longdesc=' + page_num + ']').addClass('active_page ' + jquery_ui_active_class).siblings('.active_page').removeClass('active_page ' + jquery_ui_active_class);
$nav_panels.children('.page_link[longdesc=' + page_num + ']').addClass('active_page ' + jquery_ui_active_class).siblings('.active_page').removeClass('active_page ' + jquery_ui_active_class);

// Set the current page meta data
meta.data(current_page, page_num);
Expand Down