jquery-tablesorter 1.10.6 → 1.10.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/jquery-tablesorter/version.rb +1 -1
- data/vendor/assets/javascripts/jquery-tablesorter/addons/pager/jquery.tablesorter.pager.js +2 -1
- data/vendor/assets/javascripts/jquery-tablesorter/jquery.tablesorter.js +9 -3
- data/vendor/assets/javascripts/jquery-tablesorter/jquery.tablesorter.widgets.js +2 -2
- data/vendor/assets/javascripts/jquery-tablesorter/widgets/widget-pager.js +2 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5130db03709c4bc71cd6478decaef113fc7f3474
|
4
|
+
data.tar.gz: 55da5bc1ddff917278abda02f4c4a9f5989e864c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7d87ee353472c3ddc5a136c5bdb3cc0c6fcb32c0e28c2e7628d8d55153e41893e6d58d62b2160e8f7ce929e64e94bb34bb073e4f7a388275aac0a733cb498460
|
7
|
+
data.tar.gz: 9b074256f38d0874253d8a3ada75d643011eb71627f2e5938b7a495e58b1369c2480d9dbd0f86f8979698105ae2dcbf3b5becae2dde939485fbdde77faa197ac
|
data/README.md
CHANGED
@@ -4,7 +4,7 @@
|
|
4
4
|
|
5
5
|
Simple integration of jquery-tablesorter into the asset pipeline.
|
6
6
|
|
7
|
-
Current tablesorter version: 2.15.
|
7
|
+
Current tablesorter version: 2.15.11 (3/18/2014), [documentation]
|
8
8
|
|
9
9
|
Any issue associate with the js/css files, please report to [Mottie's fork].
|
10
10
|
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/*!
|
2
2
|
* tablesorter pager plugin
|
3
|
-
* updated 3/
|
3
|
+
* updated 3/18/2014 (v2.15.11)
|
4
4
|
*/
|
5
5
|
/*jshint browser:true, jquery:true, unused:false */
|
6
6
|
;(function($) {
|
@@ -542,6 +542,7 @@
|
|
542
542
|
$.data(table, 'pagerLastPage', p.page);
|
543
543
|
$.data(table, 'pagerLastSize', p.size);
|
544
544
|
p.totalPages = Math.ceil( p.totalRows / p.size );
|
545
|
+
p.filteredPages = Math.ceil( p.filteredRows / p.size );
|
545
546
|
moveToPage(table, p);
|
546
547
|
},
|
547
548
|
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/**!
|
2
|
-
* TableSorter 2.15.
|
2
|
+
* TableSorter 2.15.11 - Client-side table sorting with ease!
|
3
3
|
* @requires jQuery v1.2.6+
|
4
4
|
*
|
5
5
|
* Copyright (c) 2007 Christian Bach
|
@@ -24,7 +24,7 @@
|
|
24
24
|
|
25
25
|
var ts = this;
|
26
26
|
|
27
|
-
ts.version = "2.15.
|
27
|
+
ts.version = "2.15.11";
|
28
28
|
|
29
29
|
ts.parsers = [];
|
30
30
|
ts.widgets = [];
|
@@ -296,6 +296,12 @@
|
|
296
296
|
}
|
297
297
|
tc.cache[k].row.push(c);
|
298
298
|
for (j = 0; j < totalCells; ++j) {
|
299
|
+
if (typeof parsers[j] === 'undefined') {
|
300
|
+
if (tc.debug) {
|
301
|
+
log('No parser found for cell:', c[0].cells[j], 'does it have a header?');
|
302
|
+
}
|
303
|
+
continue;
|
304
|
+
}
|
299
305
|
t = getElementText(table, c[0].cells[j], j);
|
300
306
|
// allow parsing if the string is empty, previously parsing would change it to zero,
|
301
307
|
// in case the parser needs to extract data from the table cell attributes
|
@@ -381,7 +387,7 @@
|
|
381
387
|
var matrix = [],
|
382
388
|
lookup = {},
|
383
389
|
cols = 0, // determine the number of columns
|
384
|
-
trs = $(t).
|
390
|
+
trs = $(t).children('thead, tfoot').children('tr'), // children tr in tfoot - see issue #196 & #547
|
385
391
|
i, j, k, l, c, cells, rowIndex, cellId, rowSpan, colSpan, firstAvailCol, matrixrow;
|
386
392
|
for (i = 0; i < trs.length; i++) {
|
387
393
|
cells = trs[i].cells;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
/*! tableSorter 2.15+ widgets - updated 3/
|
1
|
+
/*! tableSorter 2.15+ widgets - updated 3/18/2014 (v2.15.11)
|
2
2
|
*
|
3
3
|
* Column Styles
|
4
4
|
* Column Filters
|
@@ -680,7 +680,7 @@ ts.filter = {
|
|
680
680
|
for (column = 0; column < columns; column++) {
|
681
681
|
buildFilter += '<td></td>';
|
682
682
|
}
|
683
|
-
c.$filters = $(buildFilter += '</tr>').appendTo( c.$table.
|
683
|
+
c.$filters = $(buildFilter += '</tr>').appendTo( c.$table.children('thead').eq(0) ).find('td');
|
684
684
|
// build each filter input
|
685
685
|
for (column = 0; column < columns; column++) {
|
686
686
|
disabled = false;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
/* Pager widget (beta) for TableSorter 3/
|
1
|
+
/* Pager widget (beta) for TableSorter 3/18/2014 (v2.15.11) */
|
2
2
|
/*jshint browser:true, jquery:true, unused:false */
|
3
3
|
;(function($){
|
4
4
|
"use strict";
|
@@ -733,6 +733,7 @@ tsp = ts.pager = {
|
|
733
733
|
$.data(table, 'pagerLastPage', p.page);
|
734
734
|
$.data(table, 'pagerLastSize', p.size);
|
735
735
|
p.totalPages = Math.ceil( p.totalRows / p.size );
|
736
|
+
p.filteredPages = Math.ceil( p.filteredRows / p.size );
|
736
737
|
tsp.moveToPage(table, p);
|
737
738
|
},
|
738
739
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jquery-tablesorter
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.10.
|
4
|
+
version: 1.10.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jun Lin
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2014-03-
|
12
|
+
date: 2014-03-19 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: railties
|