jquery-tablesorter 1.19.1 → 1.19.2
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 +9 -5
- data/vendor/assets/javascripts/jquery-tablesorter/jquery.tablesorter.combined.js +201 -168
- data/vendor/assets/javascripts/jquery-tablesorter/jquery.tablesorter.js +59 -47
- data/vendor/assets/javascripts/jquery-tablesorter/jquery.tablesorter.widgets.js +142 -121
- data/vendor/assets/javascripts/jquery-tablesorter/parsers/parser-file-type.js +24 -2
- data/vendor/assets/javascripts/jquery-tablesorter/widgets/widget-filter.js +141 -120
- data/vendor/assets/javascripts/jquery-tablesorter/widgets/widget-grouping.js +2 -2
- data/vendor/assets/javascripts/jquery-tablesorter/widgets/widget-headerTitles.js +2 -2
- data/vendor/assets/javascripts/jquery-tablesorter/widgets/widget-math.js +6 -5
- data/vendor/assets/javascripts/jquery-tablesorter/widgets/widget-pager.js +8 -5
- data/vendor/assets/javascripts/jquery-tablesorter/widgets/widget-sort2Hash.js +45 -23
- data/vendor/assets/javascripts/jquery-tablesorter/widgets/widget-toggle.js +81 -0
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6e7479bd99a86ae571bd8c5ea0a01aa8e80cbecf
|
4
|
+
data.tar.gz: 01ff317a28d4611f603ab47d52b7c7342f2f8aef
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bdc61297bced66dabcb1b765ec4eef9605312a3df64620c816e4e3f41b5857093b463b602ed1e00721d84d5aeaf8e74967c22ecdd13e12e32416669d810b66dc
|
7
|
+
data.tar.gz: bd69883614b59704957ba1219bf34fc3998e74a01c1812c6e3652a9877fdee20aae3d2d7fe8b2615dabb9b3a23a2ce52f8327053ed4984f09deb32a7e6cc565e
|
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.24.
|
7
|
+
Current tablesorter version: 2.24.4 (11/10/2015), [documentation]
|
8
8
|
|
9
9
|
Any issue associated with the js/css files, please report to [Mottie's fork].
|
10
10
|
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/*!
|
2
2
|
* tablesorter (FORK) pager plugin
|
3
|
-
* updated 10/
|
3
|
+
* updated 11/10/2015 (v2.24.4)
|
4
4
|
*/
|
5
5
|
/*jshint browser:true, jquery:true, unused:false */
|
6
6
|
;(function($) {
|
@@ -54,7 +54,8 @@
|
|
54
54
|
ajaxProcessing: function(ajax){ return [ 0, [], null ]; },
|
55
55
|
|
56
56
|
// output default: '{page}/{totalPages}'
|
57
|
-
// possible variables: {page}, {totalPages}, {filteredPages}, {startRow},
|
57
|
+
// possible variables: {size}, {page}, {totalPages}, {filteredPages}, {startRow},
|
58
|
+
// {endRow}, {filteredRows} and {totalRows}
|
58
59
|
output: '{startRow} to {endRow} of {totalRows} rows', // '{page}/{totalPages}'
|
59
60
|
|
60
61
|
// apply disabled classname to the pager arrows when the rows at either extreme is visible
|
@@ -384,6 +385,12 @@
|
|
384
385
|
renderAjax = function(data, table, p, xhr, settings, exception){
|
385
386
|
// process data
|
386
387
|
if ( typeof p.ajaxProcessing === 'function' ) {
|
388
|
+
|
389
|
+
// in case nothing is returned by ajax, empty out the table; see #1032
|
390
|
+
// but do it before calling pager_ajaxProcessing because that function may add content
|
391
|
+
// directly to the table
|
392
|
+
c.$tbodies.eq(0).empty();
|
393
|
+
|
387
394
|
// ajaxProcessing result: [ total, rows, headers ]
|
388
395
|
var i, j, t, hsh, $f, $sh, $headers, $h, icon, th, d, l, rr_count, len,
|
389
396
|
c = table.config,
|
@@ -443,9 +450,6 @@
|
|
443
450
|
if (p.processAjaxOnInit) {
|
444
451
|
c.$tbodies.eq(0).html( tds );
|
445
452
|
}
|
446
|
-
} else {
|
447
|
-
// nothing returned by ajax, empty out the table; see #1032
|
448
|
-
c.$tbodies.eq(0).empty();
|
449
453
|
}
|
450
454
|
p.processAjaxOnInit = true;
|
451
455
|
// only add new header text if the length matches
|