jquery-tablesorter 1.23.11 → 1.23.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 96d0755bdc61ab6d509abc016331ca4b75390cc6
4
- data.tar.gz: 1bbe67384b5a4cfc66aaf48c02b95110152537a2
3
+ metadata.gz: 239cdb0e919161f29a56889486aee7a569c6bce5
4
+ data.tar.gz: 013fc8808367852338ad64de7f20a2647239046a
5
5
  SHA512:
6
- metadata.gz: 1a4748a2d053bc0cebdcd0b8cd4658f996d4bb20f0e79b6e313595544ceabddc63816c9c7607146f06536f6dc07bdc20594b834399f0a4c7a873bc80fec8ef00
7
- data.tar.gz: 372b04ac0a59a028d382e1520a3da4fe4f0247be750c1e5eb03975e7275923091ea42b8ae29e4d05451bb378029e0cffe877a4bd0017a70d983314a207d5bb87
6
+ metadata.gz: baf17491cdcd0ea749ef607902a8af719cde1361034cee1d9854d6fdb0b033c21125bd28f6fc602dc8e4f1474799d441bba12b637e0c085c2e12706614e8ad47
7
+ data.tar.gz: 25c8557784cf60e3d203ff226c3b59ab1f87550944b8af001540290a2037353cb2c70e0ee90a0338a8adb7bff93b7e6e73b3422a9208cfb93d4fc1b81f2f2581
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.28.11 (5/24/2017), [documentation]
7
+ Current tablesorter version: 2.28.12 (5/26/2017), [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 = 23
4
- TINY = 11
4
+ TINY = 12
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 05-24-2017 (v2.28.11)*/
7
+ /*! tablesorter (FORK) - updated 05-26-2017 (v2.28.12)*/
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.28.11 *//*
19
+ /*! TableSorter (FORK) v2.28.12 *//*
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.28.11',
43
+ version : '2.28.12',
44
44
 
45
45
  parsers : [],
46
46
  widgets : [],
@@ -4079,7 +4079,7 @@
4079
4079
  // change & input events must be ignored if liveSearch !== true
4080
4080
  ( eventType === 'change' || eventType === 'input' ) &&
4081
4081
  // prevent search if liveSearch is a number
4082
- ( liveSearch === true || liveSearch !== true && event.target.nodeName !== "INPUT" ) &&
4082
+ ( liveSearch === true || liveSearch !== true && event.target.nodeName !== 'INPUT' ) &&
4083
4083
  // don't allow 'change' or 'input' event to process if the input value
4084
4084
  // is the same - fixes #685
4085
4085
  this.value !== c.lastSearch[column]
@@ -4474,13 +4474,7 @@
4474
4474
  fxn = vars.functions[ columnIndex ];
4475
4475
  filterMatched = null;
4476
4476
  if ( fxn ) {
4477
- if ( fxn === true ) {
4478
- // default selector uses exact match unless 'filter-match' class is found
4479
- filterMatched = data.isMatch ?
4480
- // data.iExact may be a number
4481
- ( '' + data.iExact ).search( data.iFilter ) >= 0 :
4482
- data.filter === data.exact;
4483
- } else if ( typeof fxn === 'function' ) {
4477
+ if ( typeof fxn === 'function' ) {
4484
4478
  // filter callback( exact cell content, parser normalized content,
4485
4479
  // filter input value, column index, jQuery row object )
4486
4480
  filterMatched = fxn( data.exact, data.cache, data.filter, columnIndex, data.$row, c, data );
@@ -4499,8 +4493,18 @@
4499
4493
  result = filterMatched;
4500
4494
  // Look for match, and add child row data for matching
4501
4495
  } else {
4502
- txt = ( data.iExact + data.childRowText ).indexOf( tsf.parseFilter( c, data.iFilter, data ) );
4503
- result = ( ( !wo.filter_startsWith && txt >= 0 ) || ( wo.filter_startsWith && txt === 0 ) );
4496
+ // check fxn (filter-select in header) after filter types are checked
4497
+ // without this, the filter + jQuery UI selectmenu demo was breaking
4498
+ if ( fxn === true ) {
4499
+ // default selector uses exact match unless 'filter-match' class is found
4500
+ result = data.isMatch ?
4501
+ // data.iExact may be a number
4502
+ ( '' + data.iExact ).search( data.iFilter ) >= 0 :
4503
+ data.filter === data.exact;
4504
+ } else {
4505
+ txt = ( data.iExact + data.childRowText ).indexOf( tsf.parseFilter( c, data.iFilter, data ) );
4506
+ result = ( ( !wo.filter_startsWith && txt >= 0 ) || ( wo.filter_startsWith && txt === 0 ) );
4507
+ }
4504
4508
  }
4505
4509
  } else {
4506
4510
  result = filterMatched;
@@ -4800,6 +4804,10 @@
4800
4804
  } else if ( $.type( source ) === 'object' && fxn ) {
4801
4805
  // custom select source function for a SPECIFIC COLUMN
4802
4806
  arry = fxn( table, column, onlyAvail );
4807
+ // abort - updating the selects from an external method
4808
+ if (arry === null) {
4809
+ return null;
4810
+ }
4803
4811
  }
4804
4812
  if ( arry === false ) {
4805
4813
  // fall back to original method
@@ -4957,6 +4965,10 @@
4957
4965
  // filter_selectSource or column data
4958
4966
  if ( typeof arry === 'undefined' || arry === '' ) {
4959
4967
  arry = tsf.getOptionSource( table, column, onlyAvail );
4968
+ // abort, selects are updated by an external method
4969
+ if (arry === null) {
4970
+ return;
4971
+ }
4960
4972
  }
4961
4973
 
4962
4974
  if ( $.isArray( arry ) ) {
@@ -1,4 +1,4 @@
1
- /*! TableSorter (FORK) v2.28.11 *//*
1
+ /*! TableSorter (FORK) v2.28.12 *//*
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.28.11',
25
+ version : '2.28.12',
26
26
 
27
27
  parsers : [],
28
28
  widgets : [],
@@ -4,7 +4,7 @@
4
4
  ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██▀▀ ▀▀▀██
5
5
  █████▀ ▀████▀ ██ ██ ▀████▀ ██ ██ ██ ██ ▀████▀ █████▀ ██ ██ █████▀
6
6
  */
7
- /*! tablesorter (FORK) - updated 05-24-2017 (v2.28.11)*/
7
+ /*! tablesorter (FORK) - updated 05-26-2017 (v2.28.12)*/
8
8
  /* Includes widgets ( storage,uitheme,columns,filter,stickyHeaders,resizable,saveSort ) */
9
9
  (function(factory) {
10
10
  if (typeof define === 'function' && define.amd) {
@@ -1259,7 +1259,7 @@
1259
1259
  // change & input events must be ignored if liveSearch !== true
1260
1260
  ( eventType === 'change' || eventType === 'input' ) &&
1261
1261
  // prevent search if liveSearch is a number
1262
- ( liveSearch === true || liveSearch !== true && event.target.nodeName !== "INPUT" ) &&
1262
+ ( liveSearch === true || liveSearch !== true && event.target.nodeName !== 'INPUT' ) &&
1263
1263
  // don't allow 'change' or 'input' event to process if the input value
1264
1264
  // is the same - fixes #685
1265
1265
  this.value !== c.lastSearch[column]
@@ -1654,13 +1654,7 @@
1654
1654
  fxn = vars.functions[ columnIndex ];
1655
1655
  filterMatched = null;
1656
1656
  if ( fxn ) {
1657
- if ( fxn === true ) {
1658
- // default selector uses exact match unless 'filter-match' class is found
1659
- filterMatched = data.isMatch ?
1660
- // data.iExact may be a number
1661
- ( '' + data.iExact ).search( data.iFilter ) >= 0 :
1662
- data.filter === data.exact;
1663
- } else if ( typeof fxn === 'function' ) {
1657
+ if ( typeof fxn === 'function' ) {
1664
1658
  // filter callback( exact cell content, parser normalized content,
1665
1659
  // filter input value, column index, jQuery row object )
1666
1660
  filterMatched = fxn( data.exact, data.cache, data.filter, columnIndex, data.$row, c, data );
@@ -1679,8 +1673,18 @@
1679
1673
  result = filterMatched;
1680
1674
  // Look for match, and add child row data for matching
1681
1675
  } else {
1682
- txt = ( data.iExact + data.childRowText ).indexOf( tsf.parseFilter( c, data.iFilter, data ) );
1683
- result = ( ( !wo.filter_startsWith && txt >= 0 ) || ( wo.filter_startsWith && txt === 0 ) );
1676
+ // check fxn (filter-select in header) after filter types are checked
1677
+ // without this, the filter + jQuery UI selectmenu demo was breaking
1678
+ if ( fxn === true ) {
1679
+ // default selector uses exact match unless 'filter-match' class is found
1680
+ result = data.isMatch ?
1681
+ // data.iExact may be a number
1682
+ ( '' + data.iExact ).search( data.iFilter ) >= 0 :
1683
+ data.filter === data.exact;
1684
+ } else {
1685
+ txt = ( data.iExact + data.childRowText ).indexOf( tsf.parseFilter( c, data.iFilter, data ) );
1686
+ result = ( ( !wo.filter_startsWith && txt >= 0 ) || ( wo.filter_startsWith && txt === 0 ) );
1687
+ }
1684
1688
  }
1685
1689
  } else {
1686
1690
  result = filterMatched;
@@ -1980,6 +1984,10 @@
1980
1984
  } else if ( $.type( source ) === 'object' && fxn ) {
1981
1985
  // custom select source function for a SPECIFIC COLUMN
1982
1986
  arry = fxn( table, column, onlyAvail );
1987
+ // abort - updating the selects from an external method
1988
+ if (arry === null) {
1989
+ return null;
1990
+ }
1983
1991
  }
1984
1992
  if ( arry === false ) {
1985
1993
  // fall back to original method
@@ -2137,6 +2145,10 @@
2137
2145
  // filter_selectSource or column data
2138
2146
  if ( typeof arry === 'undefined' || arry === '' ) {
2139
2147
  arry = tsf.getOptionSource( table, column, onlyAvail );
2148
+ // abort, selects are updated by an external method
2149
+ if (arry === null) {
2150
+ return;
2151
+ }
2140
2152
  }
2141
2153
 
2142
2154
  if ( $.isArray( arry ) ) {
@@ -1,4 +1,4 @@
1
- /* Widget: columnSelector (responsive table widget) - updated 12/15/2016 (v2.28.2) *//*
1
+ /* Widget: columnSelector (responsive table widget) - updated 5/25/2017 (v2.28.12) *//*
2
2
  * Requires tablesorter v2.8+ and jQuery 1.7+
3
3
  * by Justin Hallett & Rob Garrison
4
4
  */
@@ -541,9 +541,9 @@
541
541
  },
542
542
  remove: function(table, c, wo, refreshing) {
543
543
  var csel = c.selector;
544
- if ( csel) { csel.$container.empty(); }
545
544
  if ( refreshing || !csel ) { return; }
546
- if (csel.$popup) { csel.$popup.empty(); }
545
+ if ( csel ) { csel.$container.empty(); }
546
+ if ( csel.$popup ) { csel.$popup.empty(); }
547
547
  csel.$style.remove();
548
548
  csel.$breakpoints.remove();
549
549
  $( c.namespace + 'columnselectorHasSpan' ).removeClass( wo.filter_filteredRow || 'filtered' );
@@ -22,7 +22,7 @@
22
22
  $table = c.$table,
23
23
  $attach = $(wo.cssStickyHeaders_attachTo),
24
24
  // target all versions of IE
25
- isIE = 'ActiveXObject' in window || window.navigator.userAgent.indexOf("Edge") > -1,
25
+ isIE = 'ActiveXObject' in window || window.navigator.userAgent.indexOf('Edge') > -1,
26
26
  namespace = c.namespace + 'cssstickyheader ',
27
27
  $thead = $table.children('thead'),
28
28
  $caption = $table.children('caption'),
@@ -849,7 +849,7 @@
849
849
  // change & input events must be ignored if liveSearch !== true
850
850
  ( eventType === 'change' || eventType === 'input' ) &&
851
851
  // prevent search if liveSearch is a number
852
- ( liveSearch === true || liveSearch !== true && event.target.nodeName !== "INPUT" ) &&
852
+ ( liveSearch === true || liveSearch !== true && event.target.nodeName !== 'INPUT' ) &&
853
853
  // don't allow 'change' or 'input' event to process if the input value
854
854
  // is the same - fixes #685
855
855
  this.value !== c.lastSearch[column]
@@ -1244,13 +1244,7 @@
1244
1244
  fxn = vars.functions[ columnIndex ];
1245
1245
  filterMatched = null;
1246
1246
  if ( fxn ) {
1247
- if ( fxn === true ) {
1248
- // default selector uses exact match unless 'filter-match' class is found
1249
- filterMatched = data.isMatch ?
1250
- // data.iExact may be a number
1251
- ( '' + data.iExact ).search( data.iFilter ) >= 0 :
1252
- data.filter === data.exact;
1253
- } else if ( typeof fxn === 'function' ) {
1247
+ if ( typeof fxn === 'function' ) {
1254
1248
  // filter callback( exact cell content, parser normalized content,
1255
1249
  // filter input value, column index, jQuery row object )
1256
1250
  filterMatched = fxn( data.exact, data.cache, data.filter, columnIndex, data.$row, c, data );
@@ -1269,8 +1263,18 @@
1269
1263
  result = filterMatched;
1270
1264
  // Look for match, and add child row data for matching
1271
1265
  } else {
1272
- txt = ( data.iExact + data.childRowText ).indexOf( tsf.parseFilter( c, data.iFilter, data ) );
1273
- result = ( ( !wo.filter_startsWith && txt >= 0 ) || ( wo.filter_startsWith && txt === 0 ) );
1266
+ // check fxn (filter-select in header) after filter types are checked
1267
+ // without this, the filter + jQuery UI selectmenu demo was breaking
1268
+ if ( fxn === true ) {
1269
+ // default selector uses exact match unless 'filter-match' class is found
1270
+ result = data.isMatch ?
1271
+ // data.iExact may be a number
1272
+ ( '' + data.iExact ).search( data.iFilter ) >= 0 :
1273
+ data.filter === data.exact;
1274
+ } else {
1275
+ txt = ( data.iExact + data.childRowText ).indexOf( tsf.parseFilter( c, data.iFilter, data ) );
1276
+ result = ( ( !wo.filter_startsWith && txt >= 0 ) || ( wo.filter_startsWith && txt === 0 ) );
1277
+ }
1274
1278
  }
1275
1279
  } else {
1276
1280
  result = filterMatched;
@@ -1570,6 +1574,10 @@
1570
1574
  } else if ( $.type( source ) === 'object' && fxn ) {
1571
1575
  // custom select source function for a SPECIFIC COLUMN
1572
1576
  arry = fxn( table, column, onlyAvail );
1577
+ // abort - updating the selects from an external method
1578
+ if (arry === null) {
1579
+ return null;
1580
+ }
1573
1581
  }
1574
1582
  if ( arry === false ) {
1575
1583
  // fall back to original method
@@ -1727,6 +1735,10 @@
1727
1735
  // filter_selectSource or column data
1728
1736
  if ( typeof arry === 'undefined' || arry === '' ) {
1729
1737
  arry = tsf.getOptionSource( table, column, onlyAvail );
1738
+ // abort, selects are updated by an external method
1739
+ if (arry === null) {
1740
+ return;
1741
+ }
1730
1742
  }
1731
1743
 
1732
1744
  if ( $.isArray( arry ) ) {
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.23.11
4
+ version: 1.23.12
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: 2017-05-25 00:00:00.000000000 Z
12
+ date: 2017-05-29 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: railties