Comparing version 1.0.6 to 1.0.7
{ | ||
"name": "timbles", | ||
"version": "1.0.6", | ||
"version": "1.0.7", | ||
"description": "an p chill jQuery table plugin, made by someone who literally did not invent tables", | ||
@@ -5,0 +5,0 @@ "main": "timbles", |
@@ -6,3 +6,3 @@ /** | ||
* | ||
* @version 1.0.5 | ||
* @version 1.0.7 | ||
* @author jenn schiffer http://jennmoney.biz | ||
@@ -23,2 +23,4 @@ */ | ||
var classes = { | ||
disabled : 'disabled', | ||
active : 'active', | ||
headerRow : 'header-row', | ||
@@ -427,2 +429,6 @@ label : 'label', | ||
data.$paginationNavRowCountChoice.find('button').click(function(){ | ||
data.$paginationNavRowCountChoice.find('button').removeClass(classes.active); | ||
$(this).addClass(classes.active); | ||
var newRowCount = $(this).text(); | ||
@@ -451,17 +457,17 @@ if ( newRowCount.toLowerCase() == 'all' ) { | ||
if ( data.pagination.currentPage === min ) { | ||
data.$linkFirstPage.attr('disabled', true); | ||
data.$linkPrevPage.attr('disabled', true); | ||
data.$linkFirstPage.attr('disabled', true).addClass(classes.disabled); | ||
data.$linkPrevPage.attr('disabled', true).addClass(classes.disabled); | ||
} | ||
else { | ||
data.$linkFirstPage.attr('disabled', false); | ||
data.$linkPrevPage.attr('disabled', false); | ||
data.$linkFirstPage.attr('disabled', false).removeClass(classes.disabled); | ||
data.$linkPrevPage.attr('disabled', false).removeClass(classes.disabled); | ||
} | ||
if ( data.pagination.currentPage === max ) { | ||
data.$linkLastPage.attr('disabled', true); | ||
data.$linkNextPage.attr('disabled', true); | ||
data.$linkLastPage.attr('disabled', true).addClass(classes.disabled); | ||
data.$linkNextPage.attr('disabled', true).addClass(classes.disabled); | ||
} | ||
else { | ||
data.$linkLastPage.attr('disabled', false); | ||
data.$linkNextPage.attr('disabled', false); | ||
data.$linkLastPage.attr('disabled', false).removeClass(classes.disabled); | ||
data.$linkNextPage.attr('disabled', false).removeClass(classes.disabled); | ||
} | ||
@@ -503,3 +509,3 @@ | ||
// add rows to table | ||
data.$headerRow.after(paginatedRecordsArray); | ||
$this.find('tbody').append(paginatedRecordsArray); | ||
@@ -506,0 +512,0 @@ // update pagination tools |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
202930
3186