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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a19c8332ed2d278f7184d0b54e7ce572dffd891e46ce1973627416ae618e2d24
4
- data.tar.gz: c4767ac1031094100e349f7569e8242a8f6f8635c951fee1e416c01013e091b7
3
+ metadata.gz: 8039d6c6912e9020070720031d032dc6a846c3b44488628c99b37335501880d6
4
+ data.tar.gz: 215c76affe6665b365c61c6bd13a3eee7fb79075809d176d4b0a04fae4076a14
5
5
  SHA512:
6
- metadata.gz: 34c299f71bbcf525fc3f50f7744dd475aa074af36ce40dd4ec651f4fb838775de47054874c3a048a8e1a5aa594938e3000821febcf37874de2347989fbaa72d4
7
- data.tar.gz: b1203700b0d60fa93a3fb8dbb8459e2c48ba15b2cc81bdc9cf1524351290efcea433cc8ead96ade921e7de84eba657ae922bdade064181ab135a9bf2c46e3942
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.3 (2018-03-30) [documentation]
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
 
@@ -1,7 +1,7 @@
1
1
  module JqueryTablesorter
2
2
  MAJOR = 1
3
3
  MINOR = 25
4
- TINY = 1
4
+ TINY = 2
5
5
 
6
6
  VERSION = [MAJOR, MINOR, TINY].compact.join('.')
7
7
  end
@@ -4,7 +4,7 @@
4
4
  ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██▀▀ ▀▀▀██
5
5
  █████▀ ▀████▀ ██ ██ ▀████▀ ██ ██ ██ ██ ▀████▀ █████▀ ██ ██ █████▀
6
6
  */
7
- /*! tablesorter (FORK) - updated 2018-04-30 (v2.30.3)*/
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.3 *//*
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.3',
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.3 *//*
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.3',
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-04-30 (v2.30.3)*/
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-02-25 (v2.29.6) *//*
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.scroller_saved[0] = $tableWrap.scrollLeft();
277
- wo.scroller_saved[1] = $tableWrap.scrollTop();
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.animate({
302
- scrollTop : 0
303
- }, 'fast' );
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
- wo.scroller_isBusy = false;
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.1
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-01 00:00:00.000000000 Z
12
+ date: 2018-05-21 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: railties