jquery-tablesorter 1.25.0 → 1.25.1
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 -2
- data/vendor/assets/javascripts/jquery-tablesorter/jquery.tablesorter.combined.js +10 -12
- data/vendor/assets/javascripts/jquery-tablesorter/jquery.tablesorter.js +6 -9
- data/vendor/assets/javascripts/jquery-tablesorter/jquery.tablesorter.widgets.js +4 -3
- data/vendor/assets/javascripts/jquery-tablesorter/parsers/parser-input-select.js +6 -3
- data/vendor/assets/javascripts/jquery-tablesorter/widgets/widget-build-table.js +4 -4
- data/vendor/assets/javascripts/jquery-tablesorter/widgets/widget-pager.js +2 -2
- data/vendor/assets/javascripts/jquery-tablesorter/widgets/widget-resizable.js +3 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a19c8332ed2d278f7184d0b54e7ce572dffd891e46ce1973627416ae618e2d24
|
4
|
+
data.tar.gz: c4767ac1031094100e349f7569e8242a8f6f8635c951fee1e416c01013e091b7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 34c299f71bbcf525fc3f50f7744dd475aa074af36ce40dd4ec651f4fb838775de47054874c3a048a8e1a5aa594938e3000821febcf37874de2347989fbaa72d4
|
7
|
+
data.tar.gz: b1203700b0d60fa93a3fb8dbb8459e2c48ba15b2cc81bdc9cf1524351290efcea433cc8ead96ade921e7de84eba657ae922bdade064181ab135a9bf2c46e3942
|
data/README.md
CHANGED
@@ -4,7 +4,7 @@
|
|
4
4
|
|
5
5
|
Simple integration of jQuery tablesorter ([Mottie's fork]) into the asset pipeline.
|
6
6
|
|
7
|
-
Current tablesorter version: 2.30.
|
7
|
+
Current tablesorter version: 2.30.3 (2018-03-30) [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 2018-03-
|
3
|
+
* updated 2018-03-26 (v2.30.2)
|
4
4
|
*/
|
5
5
|
/*jshint browser:true, jquery:true, unused:false */
|
6
6
|
;(function($) {
|
@@ -456,7 +456,7 @@
|
|
456
456
|
th = result[2]; // headers
|
457
457
|
}
|
458
458
|
l = d && d.length;
|
459
|
-
if (d instanceof
|
459
|
+
if (d instanceof $) {
|
460
460
|
if (p.processAjaxOnInit) {
|
461
461
|
// append jQuery object
|
462
462
|
c.$tbodies.eq(0).empty();
|
@@ -4,7 +4,7 @@
|
|
4
4
|
██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██▀▀ ▀▀▀██
|
5
5
|
█████▀ ▀████▀ ██ ██ ▀████▀ ██ ██ ██ ██ ▀████▀ █████▀ ██ ██ █████▀
|
6
6
|
*/
|
7
|
-
/*! tablesorter (FORK) - updated 2018-
|
7
|
+
/*! tablesorter (FORK) - updated 2018-04-30 (v2.30.3)*/
|
8
8
|
/* Includes widgets ( storage,uitheme,columns,filter,stickyHeaders,resizable,saveSort ) */
|
9
9
|
(function(factory) {
|
10
10
|
if (typeof define === 'function' && define.amd) {
|
@@ -16,7 +16,7 @@
|
|
16
16
|
}
|
17
17
|
}(function(jQuery) {
|
18
18
|
|
19
|
-
/*! TableSorter (FORK) v2.30.
|
19
|
+
/*! TableSorter (FORK) v2.30.3 *//*
|
20
20
|
* Client-side table sorting with ease!
|
21
21
|
* @requires jQuery v1.2.6+
|
22
22
|
*
|
@@ -40,7 +40,7 @@
|
|
40
40
|
'use strict';
|
41
41
|
var ts = $.tablesorter = {
|
42
42
|
|
43
|
-
version : '2.30.
|
43
|
+
version : '2.30.3',
|
44
44
|
|
45
45
|
parsers : [],
|
46
46
|
widgets : [],
|
@@ -536,12 +536,9 @@
|
|
536
536
|
ts.buildCache( c );
|
537
537
|
}
|
538
538
|
$cell = ts.getClosest( $( this ), '.' + ts.css.header );
|
539
|
-
//
|
540
|
-
|
541
|
-
|
542
|
-
c.last.clickedIndex = ( temp < 0 ) ? $cell.attr( 'data-column' ) : temp;
|
543
|
-
// use column index if $headers is undefined
|
544
|
-
cell = c.$headers[ c.last.clickedIndex ];
|
539
|
+
// use column index from data-attribute or index of current row; fixes #1116
|
540
|
+
c.last.clickedIndex = $cell.attr( 'data-column' ) || $cell.index();
|
541
|
+
cell = c.$headerIndexed[ c.last.clickedIndex ];
|
545
542
|
if ( cell && !cell.sortDisabled ) {
|
546
543
|
ts.initSort( c, cell, e );
|
547
544
|
}
|
@@ -1418,7 +1415,7 @@
|
|
1418
1415
|
} else if (
|
1419
1416
|
!$row ||
|
1420
1417
|
// row is a jQuery object?
|
1421
|
-
!( $row instanceof
|
1418
|
+
!( $row instanceof $ ) ||
|
1422
1419
|
// row contained in the table?
|
1423
1420
|
( ts.getClosest( $row, 'table' )[ 0 ] !== c.table )
|
1424
1421
|
) {
|
@@ -5582,7 +5579,7 @@
|
|
5582
5579
|
|
5583
5580
|
})(jQuery, window);
|
5584
5581
|
|
5585
|
-
/*! Widget: resizable - updated 2018-
|
5582
|
+
/*! Widget: resizable - updated 2018-03-26 (v2.30.2) */
|
5586
5583
|
/*jshint browser:true, jquery:true, unused:false */
|
5587
5584
|
;(function ($, window) {
|
5588
5585
|
'use strict';
|
@@ -5752,7 +5749,8 @@
|
|
5752
5749
|
tableHeight -= c.$table.children('tfoot').height();
|
5753
5750
|
}
|
5754
5751
|
// subtract out table left position from resizable handles. Fixes #864
|
5755
|
-
|
5752
|
+
// jQuery v3.3.0+ appears to include the start position with the $header.position().left; see #1544
|
5753
|
+
startPosition = parseFloat($.fn.jquery) >= 3.3 ? 0 : c.$table.position().left;
|
5756
5754
|
$handles.each( function() {
|
5757
5755
|
var $this = $(this),
|
5758
5756
|
column = parseInt( $this.attr( 'data-column' ), 10 ),
|
@@ -1,4 +1,4 @@
|
|
1
|
-
/*! TableSorter (FORK) v2.30.
|
1
|
+
/*! TableSorter (FORK) v2.30.3 *//*
|
2
2
|
* Client-side table sorting with ease!
|
3
3
|
* @requires jQuery v1.2.6+
|
4
4
|
*
|
@@ -22,7 +22,7 @@
|
|
22
22
|
'use strict';
|
23
23
|
var ts = $.tablesorter = {
|
24
24
|
|
25
|
-
version : '2.30.
|
25
|
+
version : '2.30.3',
|
26
26
|
|
27
27
|
parsers : [],
|
28
28
|
widgets : [],
|
@@ -518,12 +518,9 @@
|
|
518
518
|
ts.buildCache( c );
|
519
519
|
}
|
520
520
|
$cell = ts.getClosest( $( this ), '.' + ts.css.header );
|
521
|
-
//
|
522
|
-
|
523
|
-
|
524
|
-
c.last.clickedIndex = ( temp < 0 ) ? $cell.attr( 'data-column' ) : temp;
|
525
|
-
// use column index if $headers is undefined
|
526
|
-
cell = c.$headers[ c.last.clickedIndex ];
|
521
|
+
// use column index from data-attribute or index of current row; fixes #1116
|
522
|
+
c.last.clickedIndex = $cell.attr( 'data-column' ) || $cell.index();
|
523
|
+
cell = c.$headerIndexed[ c.last.clickedIndex ];
|
527
524
|
if ( cell && !cell.sortDisabled ) {
|
528
525
|
ts.initSort( c, cell, e );
|
529
526
|
}
|
@@ -1400,7 +1397,7 @@
|
|
1400
1397
|
} else if (
|
1401
1398
|
!$row ||
|
1402
1399
|
// row is a jQuery object?
|
1403
|
-
!( $row instanceof
|
1400
|
+
!( $row instanceof $ ) ||
|
1404
1401
|
// row contained in the table?
|
1405
1402
|
( ts.getClosest( $row, 'table' )[ 0 ] !== c.table )
|
1406
1403
|
) {
|
@@ -4,7 +4,7 @@
|
|
4
4
|
██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██▀▀ ▀▀▀██
|
5
5
|
█████▀ ▀████▀ ██ ██ ▀████▀ ██ ██ ██ ██ ▀████▀ █████▀ ██ ██ █████▀
|
6
6
|
*/
|
7
|
-
/*! tablesorter (FORK) - updated 2018-
|
7
|
+
/*! tablesorter (FORK) - updated 2018-04-30 (v2.30.3)*/
|
8
8
|
/* Includes widgets ( storage,uitheme,columns,filter,stickyHeaders,resizable,saveSort ) */
|
9
9
|
(function(factory) {
|
10
10
|
if (typeof define === 'function' && define.amd) {
|
@@ -2690,7 +2690,7 @@
|
|
2690
2690
|
|
2691
2691
|
})(jQuery, window);
|
2692
2692
|
|
2693
|
-
/*! Widget: resizable - updated 2018-
|
2693
|
+
/*! Widget: resizable - updated 2018-03-26 (v2.30.2) */
|
2694
2694
|
/*jshint browser:true, jquery:true, unused:false */
|
2695
2695
|
;(function ($, window) {
|
2696
2696
|
'use strict';
|
@@ -2860,7 +2860,8 @@
|
|
2860
2860
|
tableHeight -= c.$table.children('tfoot').height();
|
2861
2861
|
}
|
2862
2862
|
// subtract out table left position from resizable handles. Fixes #864
|
2863
|
-
|
2863
|
+
// jQuery v3.3.0+ appears to include the start position with the $header.position().left; see #1544
|
2864
|
+
startPosition = parseFloat($.fn.jquery) >= 3.3 ? 0 : c.$table.position().left;
|
2864
2865
|
$handles.each( function() {
|
2865
2866
|
var $this = $(this),
|
2866
2867
|
column = parseInt( $this.attr( 'data-column' ), 10 ),
|
@@ -1,4 +1,4 @@
|
|
1
|
-
/*! Parser: input & select - updated 2018-
|
1
|
+
/*! Parser: input & select - updated 2018-03-03 (v2.30.2) *//*
|
2
2
|
* for jQuery 1.7+ & tablesorter 2.7.11+
|
3
3
|
* Demo: http://mottie.github.com/tablesorter/docs/example-widget-grouping.html
|
4
4
|
*/
|
@@ -161,13 +161,16 @@
|
|
161
161
|
}
|
162
162
|
},
|
163
163
|
updateHeaderCheckbox = function( $table, checkboxClass ) {
|
164
|
-
var $
|
164
|
+
var $sticky,
|
165
|
+
$rows = $table.children( 'tbody' ).children( ':visible' ), // (include child rows?)
|
165
166
|
len = $rows.length,
|
166
167
|
hasSticky = $table[0].config.widgetOptions.$sticky;
|
167
168
|
// set indeterminate state on header checkbox
|
168
169
|
$table.children( 'thead' ).find( 'input[type="checkbox"]' ).each( function() {
|
170
|
+
if (hasSticky) {
|
171
|
+
$sticky = hasSticky.find( '[data-column="' + column + '"]' );
|
172
|
+
}
|
169
173
|
var column = $( this ).closest( 'td, th' ).attr( 'data-column' ),
|
170
|
-
$sticky = hasSticky.find( '[data-column="' + column + '"]' ),
|
171
174
|
vis = $rows.filter( '.' + checkboxClass + '-' + column ).length,
|
172
175
|
allChecked = vis === len && len > 0;
|
173
176
|
if ( vis === 0 || allChecked ) {
|
@@ -1,4 +1,4 @@
|
|
1
|
-
/*! Widget: Build Table - updated 2018-03-
|
1
|
+
/*! Widget: Build Table - updated 2018-03-26 (v2.30.2) *//*
|
2
2
|
* for tableSorter v2.16.0+
|
3
3
|
* by Rob Garrison
|
4
4
|
*/
|
@@ -26,7 +26,7 @@
|
|
26
26
|
// determine type: html, json, array, csv, object
|
27
27
|
runType = function(d) {
|
28
28
|
var t = $.type(d),
|
29
|
-
jq = d instanceof
|
29
|
+
jq = d instanceof $;
|
30
30
|
// run any processing if set
|
31
31
|
if ( typeof p === 'function' ) { d = p(d, wo); }
|
32
32
|
// store processed data in table.config.data
|
@@ -66,7 +66,7 @@
|
|
66
66
|
return false;
|
67
67
|
}
|
68
68
|
|
69
|
-
if ( d instanceof
|
69
|
+
if ( d instanceof $ ) {
|
70
70
|
// get data from within a jQuery object (csv)
|
71
71
|
runType( $.trim( d.html() ) );
|
72
72
|
} else if ( d && ( d.hasOwnProperty('url') || typ === 'json' ) ) {
|
@@ -309,7 +309,7 @@
|
|
309
309
|
// data may be a jQuery object after processing
|
310
310
|
bt.html = function(table, data, wo) {
|
311
311
|
var $t = $(table);
|
312
|
-
if ( data instanceof
|
312
|
+
if ( data instanceof $ ) {
|
313
313
|
$t.empty().append(data);
|
314
314
|
} else {
|
315
315
|
$t.html(data);
|
@@ -1,4 +1,4 @@
|
|
1
|
-
/*! Widget: Pager - updated 2018-03-
|
1
|
+
/*! Widget: Pager - updated 2018-03-26 (v2.30.2) */
|
2
2
|
/* Requires tablesorter v2.8+ and jQuery 1.7+
|
3
3
|
* by Rob Garrison
|
4
4
|
*/
|
@@ -773,7 +773,7 @@
|
|
773
773
|
th = result[ 2 ]; // headers
|
774
774
|
}
|
775
775
|
l = d && d.length;
|
776
|
-
if ( d instanceof
|
776
|
+
if ( d instanceof $ ) {
|
777
777
|
if ( wo.pager_processAjaxOnInit ) {
|
778
778
|
// append jQuery object
|
779
779
|
c.$tbodies.eq( 0 ).empty();
|
@@ -1,4 +1,4 @@
|
|
1
|
-
/*! Widget: resizable - updated 2018-
|
1
|
+
/*! Widget: resizable - updated 2018-03-26 (v2.30.2) */
|
2
2
|
/*jshint browser:true, jquery:true, unused:false */
|
3
3
|
;(function ($, window) {
|
4
4
|
'use strict';
|
@@ -168,7 +168,8 @@
|
|
168
168
|
tableHeight -= c.$table.children('tfoot').height();
|
169
169
|
}
|
170
170
|
// subtract out table left position from resizable handles. Fixes #864
|
171
|
-
|
171
|
+
// jQuery v3.3.0+ appears to include the start position with the $header.position().left; see #1544
|
172
|
+
startPosition = parseFloat($.fn.jquery) >= 3.3 ? 0 : c.$table.position().left;
|
172
173
|
$handles.each( function() {
|
173
174
|
var $this = $(this),
|
174
175
|
column = parseInt( $this.attr( 'data-column' ), 10 ),
|
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.25.
|
4
|
+
version: 1.25.1
|
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: 2018-
|
12
|
+
date: 2018-05-01 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: railties
|