My favorites | Sign in
Project Home Downloads Wiki Issues Source
READ-ONLY: This project has been archived. For more information see this post.
Search
for
  Advanced search   Search tips   Subscriptions
Issue 14: When first page is selected, cannot select page 2
1 person starred this issue and may be notified of changes. Back to list
Status:  New
Owner:  ----


 
Reported by rlinh...@gmail.com, Jul 31, 2014
What steps will reproduce the problem?
1. Copy demo code to new file and save as html file
2. Display in browser
3. Pagination selectors displays 1 .. .. 9

What is the expected output? What do you see instead?
   The ability to at least be able to select page 2.

What version of the product are you using? On what operating system?
   Using latest version available on 7/31/2014.  Using Latest version of Firefox on Win8.1.

Please provide any additional information below.
    Made following change in drawPageSelectors function:

var lt = ( ( page > ( pageCount - 4 ) ) ? ( pageCount - 5 ) : ( page - 2 ) );
if (lt < 0)
	lt = 0;
var gt = ( ( page < 4 ) ? 4 : page );

$('.pageSelector:lt(' + lt + '):not(:first)', this).addClass('hidePageSelector')
     .eq(0).after( '<div class="pageSelectorSeperator">' + $(target).data('tableSettings').perPageSeperator + '</div>' );
$('.pageSelector:gt(' + gt + '):not(:last)', this).addClass('hidePageSelector')
     .eq(0).after( '<div class="pageSelectorSeperator">' + $(target).data('tableSettings').perPageSeperator + '</div>' );
$('.pageSelector:eq(' + ( page - 1 ) + ')', this).addClass('hilightPageSelector');





Powered by Google Project Hosting