jquery-tablesorter 1.20.5 → 1.20.6

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
  SHA1:
3
- metadata.gz: 56d07c662f5223f551f2956eff94a49a4314b74e
4
- data.tar.gz: 8594211f80de9b5f3614e5ea08453e1421cc138d
3
+ metadata.gz: 972d76c84db1934d3ec5f7e4adf5f242fd202e25
4
+ data.tar.gz: 7e27c43cfd5da2d4724f8d615a46c3584416cc45
5
5
  SHA512:
6
- metadata.gz: 338c37e02d4a4470c27523f53ee04361282b153e610c64755e7e68d67023c79264046c33c178a9f94bdb870ba7872f6a0a3ac6d1096a1ee30aab8d7c89ea1151
7
- data.tar.gz: 4ffd4b1e5e77b3d067e05a0a7b577726023540ba25faaf4ea4aaa9215ef2559845105159c1ac2c79432bba9b12411ea850c4aee5adc00ba7ceb21014ce16c949
6
+ metadata.gz: 218c62203b87c7352e58d94685e850b9c18c8a92e1a9ab136f72e0f3ef45b882eb30947ced67583798c5aae03516a9d09264166e8371b768e0fd041b847ee8d1
7
+ data.tar.gz: 822f868e5bcac7b2e5f9513091872978333a286464b2b7c08d414116613ee587808e26cafcd77b1de4b848c0fd77a38d30cd51019c196072161e866d752db876
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.25.5 (3/1/2016), [documentation]
7
+ Current tablesorter version: 2.25.6 (3/18/2016), [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 = 20
4
- TINY = 5
4
+ TINY = 6
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 03-01-2016 (v2.25.5)*/
7
+ /*! tablesorter (FORK) - updated 03-18-2016 (v2.25.6)*/
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($) {
18
18
 
19
- /*! TableSorter (FORK) v2.25.5 *//*
19
+ /*! TableSorter (FORK) v2.25.6 *//*
20
20
  * Client-side table sorting with ease!
21
21
  * @requires jQuery v1.2.6+
22
22
  *
@@ -39,7 +39,7 @@
39
39
  'use strict';
40
40
  var ts = $.tablesorter = {
41
41
 
42
- version : '2.25.5',
42
+ version : '2.25.6',
43
43
 
44
44
  parsers : [],
45
45
  widgets : [],
@@ -1866,6 +1866,9 @@
1866
1866
  ███████▀ ██ █████▀ ▀████▀ ██████ ██ █████▀
1867
1867
  */
1868
1868
  addWidget : function( widget ) {
1869
+ if ( widget.id && !ts.isEmptyObject( ts.getWidgetById( widget.id ) ) ) {
1870
+ console.warn( '"' + widget.id + '" widget was loaded more than once!' );
1871
+ }
1869
1872
  ts.widgets[ ts.widgets.length ] = widget;
1870
1873
  },
1871
1874
 
@@ -1994,6 +1997,8 @@
1994
1997
  // set priority to 10 if not defined
1995
1998
  if ( !widget.priority ) { widget.priority = 10; }
1996
1999
  widgets[ indx ] = widget;
2000
+ } else if ( c.debug ) {
2001
+ console.warn( '"' + names[ indx ] + '" widget code does not exist!' );
1997
2002
  }
1998
2003
  }
1999
2004
  // sort widgets by priority
@@ -3092,7 +3097,7 @@
3092
3097
 
3093
3098
  })(jQuery);
3094
3099
 
3095
- /*! Widget: filter - updated 3/1/2016 (v2.25.5) *//*
3100
+ /*! Widget: filter - updated 3/18/2016 (v2.25.6) *//*
3096
3101
  * Requires tablesorter v2.8+ and jQuery 1.7+
3097
3102
  * by Rob Garrison
3098
3103
  */
@@ -3132,7 +3137,7 @@
3132
3137
  filter_defaultFilter : {}, // add a default column filter type '~{query}' to make fuzzy searches default; '{q1} AND {q2}' to make all searches use a logical AND.
3133
3138
  filter_excludeFilter : {}, // filters to exclude, per column
3134
3139
  filter_external : '', // jQuery selector string ( or jQuery object ) of external filters
3135
- filter_filteredRow : 'filtered', // class added to filtered rows; needed by pager plugin
3140
+ filter_filteredRow : 'filtered', // class added to filtered rows; define in css with "display:none" to hide the filtered-out rows
3136
3141
  filter_formatter : null, // add custom filter elements to the filter row
3137
3142
  filter_functions : null, // add custom filter functions using this option
3138
3143
  filter_hideEmpty : true, // hide filter row when table is empty
@@ -3496,8 +3501,8 @@
3496
3501
  tsf.buildRow( table, c, wo );
3497
3502
  }
3498
3503
 
3499
- txt = 'addRows updateCell update updateRows updateComplete appendCache filterReset filterEnd search '
3500
- .split( ' ' ).join( c.namespace + 'filter ' );
3504
+ txt = 'addRows updateCell update updateRows updateComplete appendCache filterReset ' +
3505
+ 'filterResetSaved filterEnd search '.split( ' ' ).join( c.namespace + 'filter ' );
3501
3506
  c.$table.bind( txt, function( event, filter ) {
3502
3507
  val = wo.filter_hideEmpty &&
3503
3508
  $.isEmptyObject( c.cache ) &&
@@ -3511,6 +3516,8 @@
3511
3516
  if ( event.type === 'filterReset' ) {
3512
3517
  c.$table.find( '.' + tscss.filter ).add( wo.filter_$externalFilters ).val( '' );
3513
3518
  tsf.searching( table, [] );
3519
+ } else if ( event.type === 'filterResetSaved' ) {
3520
+ ts.storage( table, 'tablesorter-filters', '' );
3514
3521
  } else if ( event.type === 'filterEnd' ) {
3515
3522
  tsf.buildDefault( table, true );
3516
3523
  } else {
@@ -3926,7 +3933,7 @@
3926
3933
  // prevent errors if delay init is set
3927
3934
  if ( $.isEmptyObject( c.cache ) ) {
3928
3935
  // update cache if delayInit set & pager has initialized ( after user initiates a search )
3929
- if ( c.delayInit && c.pager && c.pager.initialized ) {
3936
+ if ( c.delayInit && ( !c.pager || c.pager && c.pager.initialized ) ) {
3930
3937
  ts.updateCache( c, function() {
3931
3938
  tsf.checkFilters( table, false, skipFirst );
3932
3939
  });
@@ -1,4 +1,4 @@
1
- /*! TableSorter (FORK) v2.25.5 *//*
1
+ /*! TableSorter (FORK) v2.25.6 *//*
2
2
  * Client-side table sorting with ease!
3
3
  * @requires jQuery v1.2.6+
4
4
  *
@@ -21,7 +21,7 @@
21
21
  'use strict';
22
22
  var ts = $.tablesorter = {
23
23
 
24
- version : '2.25.5',
24
+ version : '2.25.6',
25
25
 
26
26
  parsers : [],
27
27
  widgets : [],
@@ -1848,6 +1848,9 @@
1848
1848
  ███████▀ ██ █████▀ ▀████▀ ██████ ██ █████▀
1849
1849
  */
1850
1850
  addWidget : function( widget ) {
1851
+ if ( widget.id && !ts.isEmptyObject( ts.getWidgetById( widget.id ) ) ) {
1852
+ console.warn( '"' + widget.id + '" widget was loaded more than once!' );
1853
+ }
1851
1854
  ts.widgets[ ts.widgets.length ] = widget;
1852
1855
  },
1853
1856
 
@@ -1976,6 +1979,8 @@
1976
1979
  // set priority to 10 if not defined
1977
1980
  if ( !widget.priority ) { widget.priority = 10; }
1978
1981
  widgets[ indx ] = widget;
1982
+ } else if ( c.debug ) {
1983
+ console.warn( '"' + names[ indx ] + '" widget code does not exist!' );
1979
1984
  }
1980
1985
  }
1981
1986
  // sort widgets by priority
@@ -4,7 +4,7 @@
4
4
  ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██▀▀ ▀▀▀██
5
5
  █████▀ ▀████▀ ██ ██ ▀████▀ ██ ██ ██ ██ ▀████▀ █████▀ ██ ██ █████▀
6
6
  */
7
- /*! tablesorter (FORK) - updated 03-01-2016 (v2.25.5)*/
7
+ /*! tablesorter (FORK) - updated 03-18-2016 (v2.25.6)*/
8
8
  /* Includes widgets ( storage,uitheme,columns,filter,stickyHeaders,resizable,saveSort ) */
9
9
  (function(factory) {
10
10
  if (typeof define === 'function' && define.amd) {
@@ -372,7 +372,7 @@
372
372
 
373
373
  })(jQuery);
374
374
 
375
- /*! Widget: filter - updated 3/1/2016 (v2.25.5) *//*
375
+ /*! Widget: filter - updated 3/18/2016 (v2.25.6) *//*
376
376
  * Requires tablesorter v2.8+ and jQuery 1.7+
377
377
  * by Rob Garrison
378
378
  */
@@ -412,7 +412,7 @@
412
412
  filter_defaultFilter : {}, // add a default column filter type '~{query}' to make fuzzy searches default; '{q1} AND {q2}' to make all searches use a logical AND.
413
413
  filter_excludeFilter : {}, // filters to exclude, per column
414
414
  filter_external : '', // jQuery selector string ( or jQuery object ) of external filters
415
- filter_filteredRow : 'filtered', // class added to filtered rows; needed by pager plugin
415
+ filter_filteredRow : 'filtered', // class added to filtered rows; define in css with "display:none" to hide the filtered-out rows
416
416
  filter_formatter : null, // add custom filter elements to the filter row
417
417
  filter_functions : null, // add custom filter functions using this option
418
418
  filter_hideEmpty : true, // hide filter row when table is empty
@@ -776,8 +776,8 @@
776
776
  tsf.buildRow( table, c, wo );
777
777
  }
778
778
 
779
- txt = 'addRows updateCell update updateRows updateComplete appendCache filterReset filterEnd search '
780
- .split( ' ' ).join( c.namespace + 'filter ' );
779
+ txt = 'addRows updateCell update updateRows updateComplete appendCache filterReset ' +
780
+ 'filterResetSaved filterEnd search '.split( ' ' ).join( c.namespace + 'filter ' );
781
781
  c.$table.bind( txt, function( event, filter ) {
782
782
  val = wo.filter_hideEmpty &&
783
783
  $.isEmptyObject( c.cache ) &&
@@ -791,6 +791,8 @@
791
791
  if ( event.type === 'filterReset' ) {
792
792
  c.$table.find( '.' + tscss.filter ).add( wo.filter_$externalFilters ).val( '' );
793
793
  tsf.searching( table, [] );
794
+ } else if ( event.type === 'filterResetSaved' ) {
795
+ ts.storage( table, 'tablesorter-filters', '' );
794
796
  } else if ( event.type === 'filterEnd' ) {
795
797
  tsf.buildDefault( table, true );
796
798
  } else {
@@ -1206,7 +1208,7 @@
1206
1208
  // prevent errors if delay init is set
1207
1209
  if ( $.isEmptyObject( c.cache ) ) {
1208
1210
  // update cache if delayInit set & pager has initialized ( after user initiates a search )
1209
- if ( c.delayInit && c.pager && c.pager.initialized ) {
1211
+ if ( c.delayInit && ( !c.pager || c.pager && c.pager.initialized ) ) {
1210
1212
  ts.updateCache( c, function() {
1211
1213
  tsf.checkFilters( table, false, skipFirst );
1212
1214
  });
@@ -1,4 +1,4 @@
1
- /*! Widget: filter - updated 3/1/2016 (v2.25.5) *//*
1
+ /*! Widget: filter - updated 3/18/2016 (v2.25.6) *//*
2
2
  * Requires tablesorter v2.8+ and jQuery 1.7+
3
3
  * by Rob Garrison
4
4
  */
@@ -38,7 +38,7 @@
38
38
  filter_defaultFilter : {}, // add a default column filter type '~{query}' to make fuzzy searches default; '{q1} AND {q2}' to make all searches use a logical AND.
39
39
  filter_excludeFilter : {}, // filters to exclude, per column
40
40
  filter_external : '', // jQuery selector string ( or jQuery object ) of external filters
41
- filter_filteredRow : 'filtered', // class added to filtered rows; needed by pager plugin
41
+ filter_filteredRow : 'filtered', // class added to filtered rows; define in css with "display:none" to hide the filtered-out rows
42
42
  filter_formatter : null, // add custom filter elements to the filter row
43
43
  filter_functions : null, // add custom filter functions using this option
44
44
  filter_hideEmpty : true, // hide filter row when table is empty
@@ -402,8 +402,8 @@
402
402
  tsf.buildRow( table, c, wo );
403
403
  }
404
404
 
405
- txt = 'addRows updateCell update updateRows updateComplete appendCache filterReset filterEnd search '
406
- .split( ' ' ).join( c.namespace + 'filter ' );
405
+ txt = 'addRows updateCell update updateRows updateComplete appendCache filterReset ' +
406
+ 'filterResetSaved filterEnd search '.split( ' ' ).join( c.namespace + 'filter ' );
407
407
  c.$table.bind( txt, function( event, filter ) {
408
408
  val = wo.filter_hideEmpty &&
409
409
  $.isEmptyObject( c.cache ) &&
@@ -417,6 +417,8 @@
417
417
  if ( event.type === 'filterReset' ) {
418
418
  c.$table.find( '.' + tscss.filter ).add( wo.filter_$externalFilters ).val( '' );
419
419
  tsf.searching( table, [] );
420
+ } else if ( event.type === 'filterResetSaved' ) {
421
+ ts.storage( table, 'tablesorter-filters', '' );
420
422
  } else if ( event.type === 'filterEnd' ) {
421
423
  tsf.buildDefault( table, true );
422
424
  } else {
@@ -832,7 +834,7 @@
832
834
  // prevent errors if delay init is set
833
835
  if ( $.isEmptyObject( c.cache ) ) {
834
836
  // update cache if delayInit set & pager has initialized ( after user initiates a search )
835
- if ( c.delayInit && c.pager && c.pager.initialized ) {
837
+ if ( c.delayInit && ( !c.pager || c.pager && c.pager.initialized ) ) {
836
838
  ts.updateCache( c, function() {
837
839
  tsf.checkFilters( table, false, skipFirst );
838
840
  });
@@ -1,4 +1,4 @@
1
- /*! Widget: lazyload (BETA) - 10/31/2015 (v2.24.0) *//*
1
+ /*! Widget: lazyload (BETA) - 3/18/2016 (v2.25.6) *//*
2
2
  * Requires tablesorter v2.8+ and jQuery 1.7+
3
3
  * by Rob Garrison
4
4
  */
@@ -15,11 +15,17 @@
15
15
  $.event.special.scrollstop.latency = wo.lazyload_latency || 250;
16
16
  }
17
17
  ts.lazyload.update( c, wo );
18
- var events = [ wo.lazyload_update, 'pagerUpdate', wo.columnSelector_updated || 'columnUpdate', '' ]
19
- .join( c.namespace + 'lazyload ' );
20
- c.$table.on( events, function() {
21
- ts.lazyload.update( c, c.widgetOptions );
22
- });
18
+ var namespace = c.namespace + 'lazyload ',
19
+ events = [ wo.lazyload_update, 'pagerUpdate', wo.columnSelector_updated || 'columnUpdate', '' ]
20
+ .join( namespace );
21
+ c.$table
22
+ .on( events, function() {
23
+ ts.lazyload.update( c, c.widgetOptions );
24
+ })
25
+ .on( 'filterEnd' + namespace, function() {
26
+ // give lazyload a nudge after filtering the table. Fixes #1169
27
+ $(window).scroll();
28
+ });
23
29
  },
24
30
  update : function( c, wo ) {
25
31
  // add '.' if not already included
@@ -57,7 +63,7 @@
57
63
  lazyload_effect : 'show',
58
64
  lazyload_container : window,
59
65
  lazyload_data_attribute : 'original',
60
- lazyload_skip_invisible : false,
66
+ lazyload_skip_invisible : true,
61
67
  lazyload_appear : null,
62
68
  lazyload_load : null,
63
69
  lazyload_placeholder : 'data:image/gif;base64,R0lGODlhAQABAIABAP///wAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=='
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.20.5
4
+ version: 1.20.6
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: 2016-03-02 00:00:00.000000000 Z
12
+ date: 2016-03-21 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: railties