My favorites
▼
|
Sign in
jquery-jtps
jTPS - animated scrolling, sortable, and pretty datagrid table modifier
Project Home
Downloads
Wiki
Issues
Source
Export to GitHub
READ-ONLY: This project has been
archived
. For more information see
this post
.
Search
Search within:
All issues
Open issues
New issues
Issues to verify
for
Advanced search
Search tips
Subscriptions
Issue
8
attachment: jTPS.js.patch
(926 bytes)
1
2
3
4
5
6
7
8
9
10
11
--- trunk/jTPS.js
+++ trunk/jTPS.js
@@ -182,7 +182,7 @@
$('.hidePageSelector', this).removeClass('hidePageSelector');
$('.hilightPageSelector', this).removeClass('hilightPageSelector');
$('.pageSelectorSeperator', this).remove();
- $('.pageSelector:lt(' + ( ( page > ( pageCount - 4 ) ) ? ( pageCount - 5 ) : ( page - 2 ) ) + '):not(:first)', this).addClass('hidePageSelector')
+ $('.pageSelector:lt(' + Math.max( 1 , ( page > ( pageCount - 4 ) ) ? ( pageCount - 5 ) : ( page - 2 ) ) + '):not(:first)', this).addClass('hidePageSelector')
.eq(0).after( '<div class="pageSelectorSeperator">' + $(target).data('tableSettings').perPageSeperator + '</div>' );
$('.pageSelector:gt(' + ( ( page < 4 ) ? 4 : page ) + '):not(:last)', this).addClass('hidePageSelector')
.eq(0).after( '<div class="pageSelectorSeperator">' + $(target).data('tableSettings').perPageSeperator + '</div>' );
Powered by
Google Project Hosting