jquery-tablesorter 1.25.1 → 1.25.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/jquery.tablesorter.combined.js +4 -4
- data/vendor/assets/javascripts/jquery-tablesorter/jquery.tablesorter.js +3 -3
- data/vendor/assets/javascripts/jquery-tablesorter/jquery.tablesorter.widgets.js +1 -1
- data/vendor/assets/javascripts/jquery-tablesorter/widgets/widget-scroller.js +19 -7
- 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: 8039d6c6912e9020070720031d032dc6a846c3b44488628c99b37335501880d6
|
4
|
+
data.tar.gz: 215c76affe6665b365c61c6bd13a3eee7fb79075809d176d4b0a04fae4076a14
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ed0e703095111a3c3067af76acf6e1df80e549e888145253214c5a85c430329e97b8ae657cb5f606e42455a9a9ce9ff78010603bb1d41d87df6a2afc28bc14f9
|
7
|
+
data.tar.gz: '0685917b972a98fd92354283eddfe5d8f16acfd48313cccb94f1376c4bf07b021f07663301d7ca3e94df0efc8d491f4c0380130af602ca6f2069c6f9f1456e8e'
|
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.4 (2018-05-16) [documentation]
|
8
8
|
|
9
9
|
Any issue associated with the js/css files, please report to [Mottie's fork].
|
10
10
|
|
@@ -4,7 +4,7 @@
|
|
4
4
|
██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██▀▀ ▀▀▀██
|
5
5
|
█████▀ ▀████▀ ██ ██ ▀████▀ ██ ██ ██ ██ ▀████▀ █████▀ ██ ██ █████▀
|
6
6
|
*/
|
7
|
-
/*! tablesorter (FORK) - updated 2018-
|
7
|
+
/*! tablesorter (FORK) - updated 2018-05-16 (v2.30.4)*/
|
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.4 *//*
|
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.4',
|
44
44
|
|
45
45
|
parsers : [],
|
46
46
|
widgets : [],
|
@@ -538,7 +538,7 @@
|
|
538
538
|
$cell = ts.getClosest( $( this ), '.' + ts.css.header );
|
539
539
|
// use column index from data-attribute or index of current row; fixes #1116
|
540
540
|
c.last.clickedIndex = $cell.attr( 'data-column' ) || $cell.index();
|
541
|
-
cell = c.$headerIndexed[ c.last.clickedIndex ];
|
541
|
+
cell = c.$headerIndexed[ c.last.clickedIndex ][0];
|
542
542
|
if ( cell && !cell.sortDisabled ) {
|
543
543
|
ts.initSort( c, cell, e );
|
544
544
|
}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
/*! TableSorter (FORK) v2.30.
|
1
|
+
/*! TableSorter (FORK) v2.30.4 *//*
|
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.4',
|
26
26
|
|
27
27
|
parsers : [],
|
28
28
|
widgets : [],
|
@@ -520,7 +520,7 @@
|
|
520
520
|
$cell = ts.getClosest( $( this ), '.' + ts.css.header );
|
521
521
|
// use column index from data-attribute or index of current row; fixes #1116
|
522
522
|
c.last.clickedIndex = $cell.attr( 'data-column' ) || $cell.index();
|
523
|
-
cell = c.$headerIndexed[ c.last.clickedIndex ];
|
523
|
+
cell = c.$headerIndexed[ c.last.clickedIndex ][0];
|
524
524
|
if ( cell && !cell.sortDisabled ) {
|
525
525
|
ts.initSort( c, cell, e );
|
526
526
|
}
|
@@ -4,7 +4,7 @@
|
|
4
4
|
██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██▀▀ ▀▀▀██
|
5
5
|
█████▀ ▀████▀ ██ ██ ▀████▀ ██ ██ ██ ██ ▀████▀ █████▀ ██ ██ █████▀
|
6
6
|
*/
|
7
|
-
/*! tablesorter (FORK) - updated 2018-
|
7
|
+
/*! tablesorter (FORK) - updated 2018-05-16 (v2.30.4)*/
|
8
8
|
/* Includes widgets ( storage,uitheme,columns,filter,stickyHeaders,resizable,saveSort ) */
|
9
9
|
(function(factory) {
|
10
10
|
if (typeof define === 'function' && define.amd) {
|
@@ -1,4 +1,4 @@
|
|
1
|
-
/*! Widget: scroller - updated 2018-
|
1
|
+
/*! Widget: scroller - updated 2018-05-07 (v2.30.4) *//*
|
2
2
|
Copyright (C) 2011 T. Connell & Associates, Inc.
|
3
3
|
|
4
4
|
Dual-licensed under the MIT and GPL licenses
|
@@ -203,6 +203,7 @@
|
|
203
203
|
wo.scroller_calcWidths = [];
|
204
204
|
wo.scroller_saved = [ 0, 0 ];
|
205
205
|
wo.scroller_isBusy = true;
|
206
|
+
wo.scroller_scrollTimer = null;
|
206
207
|
|
207
208
|
// set scrollbar width to one of the following (1) explicitly set scroller_barWidth option,
|
208
209
|
// (2) detected scrollbar width or (3) fallback of 15px
|
@@ -273,8 +274,11 @@
|
|
273
274
|
.off( 'scroll' + namespace )
|
274
275
|
.on( 'scroll' + namespace, function() {
|
275
276
|
// Save position
|
276
|
-
wo.
|
277
|
-
wo.
|
277
|
+
clearTimeout(wo.scroller_scrollTimer);
|
278
|
+
wo.scroller_scrollTimer = setTimeout(function() {
|
279
|
+
wo.scroller_saved[0] = $tableWrap.scrollLeft();
|
280
|
+
wo.scroller_saved[1] = $tableWrap.scrollTop();
|
281
|
+
}, 300);
|
278
282
|
if ( wo.scroller_jumpToHeader ) {
|
279
283
|
var pos = $win.scrollTop() - $hdr.offset().top;
|
280
284
|
if ( $( this ).scrollTop() !== 0 && pos < tbHt && pos > 0 ) {
|
@@ -295,12 +299,18 @@
|
|
295
299
|
|
296
300
|
$table
|
297
301
|
.off( namespace )
|
302
|
+
.on( 'sortStart' + namespace, function() {
|
303
|
+
clearTimeout(wo.scroller_scrollTimer);
|
304
|
+
wo.scroller_isBusy = true;
|
305
|
+
})
|
298
306
|
.on( 'sortEnd filterEnd'.split( ' ' ).join( namespace + ' ' ), function( event ) {
|
299
307
|
// Sorting, so scroll to top
|
300
308
|
if ( event.type === 'sortEnd' && wo.scroller_upAfterSort ) {
|
301
|
-
$tableWrap
|
302
|
-
|
303
|
-
|
309
|
+
$tableWrap
|
310
|
+
.scrollLeft( wo.scroller_saved[0] )
|
311
|
+
.animate({ scrollTop : 0 }, 'fast', function() {
|
312
|
+
wo.scroller_isBusy = false;
|
313
|
+
});
|
304
314
|
} else if ( wo.scroller_fixedColumns ) {
|
305
315
|
setTimeout( function() {
|
306
316
|
// restore previous scroll position
|
@@ -859,7 +869,9 @@
|
|
859
869
|
$fixedColumn.find('caption').height( wo.scroller_$header.find( 'caption' ).height() );
|
860
870
|
|
861
871
|
$tableWrap.scroll();
|
862
|
-
|
872
|
+
setTimeout(function() {
|
873
|
+
wo.scroller_isBusy = false;
|
874
|
+
}, 0)
|
863
875
|
|
864
876
|
},
|
865
877
|
|
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.2
|
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-05-
|
12
|
+
date: 2018-05-21 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: railties
|