jquery-tablesorter 1.23.1 → 1.23.2

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: 9c5ec1ea040208bd492a6ddb95fc04d7b567b5d3
4
- data.tar.gz: b0d4cc516082b7c9f6141b70bf50479267ef27fc
3
+ metadata.gz: d087e39adb7903142943b53543ab998939170f28
4
+ data.tar.gz: 80d56d592f13a994f2fa4d2dcddab31237b5b226
5
5
  SHA512:
6
- metadata.gz: 964dcab9c0d02504d586dd7d991b8e257c3eff0b879b2d8104b22d4bcbb512b91b904efe154ea64f3a30009fab0ce921f96e3946545f4e0cf2277ec80c862563
7
- data.tar.gz: da9eaf1162c57209531534538c9cd4242ca6aa8a6a74f25495204888bf91cd6064ad1d3f92f489d96792d07988af706c3782a988320117c35ea786db504bb9c5
6
+ metadata.gz: a719108eafd7d9a2bcabf62ad5ed3a4eb179fc6a41603c803e57ebaf08224bf3896d68483a73c7b040283b5b6971173c4b66ecda261d1e5ada5405823d7c48ee
7
+ data.tar.gz: d5f4c4a0d8a1773086a1e56b858b2100c9ff899a3ba6d0d5df814ab94edd58d954ded4d22d1cd510f88efa0e766fe01b65c838768f0fc711bec1497e17c3d1ea
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.0 (11/27/2016), [documentation]
7
+ Current tablesorter version: 2.28.1 (11/27/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 = 23
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 11-26-2016 (v2.28.0)*/
7
+ /*! tablesorter (FORK) - updated 12-08-2016 (v2.28.1)*/
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.0 *//*
19
+ /*! TableSorter (FORK) v2.28.1 *//*
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.0',
43
+ version : '2.28.1',
44
44
 
45
45
  parsers : [],
46
46
  widgets : [],
@@ -2426,7 +2426,7 @@
2426
2426
  validateOptions : function( c ) {
2427
2427
  var setting, setting2, typ, timer,
2428
2428
  // ignore options containing an array
2429
- ignore = 'sortForce sortList sortAppend widgets'.split( ' ' ),
2429
+ ignore = 'headers sortForce sortList sortAppend widgets'.split( ' ' ),
2430
2430
  orig = c.originalSettings;
2431
2431
  if ( orig ) {
2432
2432
  if ( c.debug ) {
@@ -2438,7 +2438,7 @@
2438
2438
  console.warn( 'Tablesorter Warning! "table.config.' + setting + '" option not recognized' );
2439
2439
  } else if ( typ === 'object' ) {
2440
2440
  for ( setting2 in orig[setting] ) {
2441
- typ = typeof ts.defaults[setting][setting2];
2441
+ typ = ts.defaults[setting] && typeof ts.defaults[setting][setting2];
2442
2442
  if ( $.inArray( setting, ignore ) < 0 && typ === 'undefined' ) {
2443
2443
  console.warn( 'Tablesorter Warning! "table.config.' + setting + '.' + setting2 + '" option not recognized' );
2444
2444
  }
@@ -2913,7 +2913,7 @@
2913
2913
 
2914
2914
  })(jQuery, window, document);
2915
2915
 
2916
- /*! Widget: uitheme - updated 7/31/2016 (v2.27.0) */
2916
+ /*! Widget: uitheme - updated 12/8/2016 (v2.28.1) */
2917
2917
  ;(function ($) {
2918
2918
  'use strict';
2919
2919
  var ts = $.tablesorter || {};
@@ -3039,7 +3039,7 @@
3039
3039
  .addClass(themes.icons || '');
3040
3040
  }
3041
3041
  // filter widget initializes after uitheme
3042
- if (c.widgets.indexOf('filter') > -1) {
3042
+ if (ts.hasWidget( c.table, 'filter' )) {
3043
3043
  tmp = function() {
3044
3044
  $table.children('thead').children('.' + ts.css.filterRow)
3045
3045
  .removeClass(hasOldTheme ? oldtheme.filterRow || '' : '')
@@ -3188,7 +3188,7 @@
3188
3188
 
3189
3189
  })(jQuery);
3190
3190
 
3191
- /*! Widget: filter - updated 11/26/2016 (v2.28.0) *//*
3191
+ /*! Widget: filter - updated 12/8/2016 (v2.28.1) *//*
3192
3192
  * Requires tablesorter v2.8+ and jQuery 1.7+
3193
3193
  * by Rob Garrison
3194
3194
  */
@@ -4012,7 +4012,7 @@
4012
4012
  return;
4013
4013
  }
4014
4014
  // change event = no delay; last true flag tells getFilters to skip newest timed input
4015
- tsf.searching( table, true, true );
4015
+ tsf.searching( table, true, true, column );
4016
4016
  })
4017
4017
  // include change for select - fixes #473
4018
4018
  .bind( 'search change keypress input '.split( ' ' ).join( namespace + ' ' ), function( event ) {
@@ -4021,12 +4021,19 @@
4021
4021
  liveSearch = typeof wo.filter_liveSearch === 'boolean' ?
4022
4022
  wo.filter_liveSearch :
4023
4023
  ts.getColumnData( table, wo.filter_liveSearch, column );
4024
- // don't allow 'change' event to process if the input value is the same - fixes #685
4025
4024
  if ( table.config.widgetOptions.filter_initialized &&
4026
- ( event.which === tskeyCodes.enter || event.type === 'search' ||
4027
- ( event.type === 'change' ||
4028
- ( event.type === 'input' && liveSearch === true ) ) &&
4029
- this.value !== c.lastSearch[column] )
4025
+ // immediate search if user presses enter
4026
+ ( event.which === tskeyCodes.enter ||
4027
+ // immediate search if a "search" is triggered on the input
4028
+ event.type === 'search' ||
4029
+ // change & input events must be ignored if liveSearch !== true
4030
+ ( event.type === 'change' || event.type === 'input' ) &&
4031
+ // prevent search if liveSearch is a number
4032
+ liveSearch === true &&
4033
+ // don't allow 'change' or 'input' event to process if the input value
4034
+ // is the same - fixes #685
4035
+ this.value !== c.lastSearch[column]
4036
+ )
4030
4037
  ) {
4031
4038
  event.preventDefault();
4032
4039
  // init search with no delay
@@ -4046,7 +4053,7 @@
4046
4053
  wo.filter_liveSearch :
4047
4054
  // get column setting, or set to fallback value, or default to false
4048
4055
  ts.getColumnData( table, wo.filter_liveSearch, column );
4049
- if ( typeof liveSearch !== 'undefined' ) {
4056
+ if ( typeof liveSearch === 'undefined' ) {
4050
4057
  liveSearch = wo.filter_liveSearch.fallback || false;
4051
4058
  }
4052
4059
  }
@@ -1,4 +1,4 @@
1
- /*! TableSorter (FORK) v2.28.0 *//*
1
+ /*! TableSorter (FORK) v2.28.1 *//*
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.0',
25
+ version : '2.28.1',
26
26
 
27
27
  parsers : [],
28
28
  widgets : [],
@@ -4,7 +4,7 @@
4
4
  ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██▀▀ ▀▀▀██
5
5
  █████▀ ▀████▀ ██ ██ ▀████▀ ██ ██ ██ ██ ▀████▀ █████▀ ██ ██ █████▀
6
6
  */
7
- /*! tablesorter (FORK) - updated 11-26-2016 (v2.28.0)*/
7
+ /*! tablesorter (FORK) - updated 12-08-2016 (v2.28.1)*/
8
8
  /* Includes widgets ( storage,uitheme,columns,filter,stickyHeaders,resizable,saveSort ) */
9
9
  (function(factory) {
10
10
  if (typeof define === 'function' && define.amd) {
@@ -118,7 +118,7 @@
118
118
 
119
119
  })(jQuery, window, document);
120
120
 
121
- /*! Widget: uitheme - updated 7/31/2016 (v2.27.0) */
121
+ /*! Widget: uitheme - updated 12/8/2016 (v2.28.1) */
122
122
  ;(function ($) {
123
123
  'use strict';
124
124
  var ts = $.tablesorter || {};
@@ -244,7 +244,7 @@
244
244
  .addClass(themes.icons || '');
245
245
  }
246
246
  // filter widget initializes after uitheme
247
- if (c.widgets.indexOf('filter') > -1) {
247
+ if (ts.hasWidget( c.table, 'filter' )) {
248
248
  tmp = function() {
249
249
  $table.children('thead').children('.' + ts.css.filterRow)
250
250
  .removeClass(hasOldTheme ? oldtheme.filterRow || '' : '')
@@ -393,7 +393,7 @@
393
393
 
394
394
  })(jQuery);
395
395
 
396
- /*! Widget: filter - updated 11/26/2016 (v2.28.0) *//*
396
+ /*! Widget: filter - updated 12/8/2016 (v2.28.1) *//*
397
397
  * Requires tablesorter v2.8+ and jQuery 1.7+
398
398
  * by Rob Garrison
399
399
  */
@@ -1217,7 +1217,7 @@
1217
1217
  return;
1218
1218
  }
1219
1219
  // change event = no delay; last true flag tells getFilters to skip newest timed input
1220
- tsf.searching( table, true, true );
1220
+ tsf.searching( table, true, true, column );
1221
1221
  })
1222
1222
  // include change for select - fixes #473
1223
1223
  .bind( 'search change keypress input '.split( ' ' ).join( namespace + ' ' ), function( event ) {
@@ -1226,12 +1226,19 @@
1226
1226
  liveSearch = typeof wo.filter_liveSearch === 'boolean' ?
1227
1227
  wo.filter_liveSearch :
1228
1228
  ts.getColumnData( table, wo.filter_liveSearch, column );
1229
- // don't allow 'change' event to process if the input value is the same - fixes #685
1230
1229
  if ( table.config.widgetOptions.filter_initialized &&
1231
- ( event.which === tskeyCodes.enter || event.type === 'search' ||
1232
- ( event.type === 'change' ||
1233
- ( event.type === 'input' && liveSearch === true ) ) &&
1234
- this.value !== c.lastSearch[column] )
1230
+ // immediate search if user presses enter
1231
+ ( event.which === tskeyCodes.enter ||
1232
+ // immediate search if a "search" is triggered on the input
1233
+ event.type === 'search' ||
1234
+ // change & input events must be ignored if liveSearch !== true
1235
+ ( event.type === 'change' || event.type === 'input' ) &&
1236
+ // prevent search if liveSearch is a number
1237
+ liveSearch === true &&
1238
+ // don't allow 'change' or 'input' event to process if the input value
1239
+ // is the same - fixes #685
1240
+ this.value !== c.lastSearch[column]
1241
+ )
1235
1242
  ) {
1236
1243
  event.preventDefault();
1237
1244
  // init search with no delay
@@ -1251,7 +1258,7 @@
1251
1258
  wo.filter_liveSearch :
1252
1259
  // get column setting, or set to fallback value, or default to false
1253
1260
  ts.getColumnData( table, wo.filter_liveSearch, column );
1254
- if ( typeof liveSearch !== 'undefined' ) {
1261
+ if ( typeof liveSearch === 'undefined' ) {
1255
1262
  liveSearch = wo.filter_liveSearch.fallback || false;
1256
1263
  }
1257
1264
  }
@@ -1,4 +1,4 @@
1
- /*! Widget: filter - updated 11/26/2016 (v2.28.0) *//*
1
+ /*! Widget: filter - updated 12/8/2016 (v2.28.1) *//*
2
2
  * Requires tablesorter v2.8+ and jQuery 1.7+
3
3
  * by Rob Garrison
4
4
  */
@@ -822,7 +822,7 @@
822
822
  return;
823
823
  }
824
824
  // change event = no delay; last true flag tells getFilters to skip newest timed input
825
- tsf.searching( table, true, true );
825
+ tsf.searching( table, true, true, column );
826
826
  })
827
827
  // include change for select - fixes #473
828
828
  .bind( 'search change keypress input '.split( ' ' ).join( namespace + ' ' ), function( event ) {
@@ -831,12 +831,19 @@
831
831
  liveSearch = typeof wo.filter_liveSearch === 'boolean' ?
832
832
  wo.filter_liveSearch :
833
833
  ts.getColumnData( table, wo.filter_liveSearch, column );
834
- // don't allow 'change' event to process if the input value is the same - fixes #685
835
834
  if ( table.config.widgetOptions.filter_initialized &&
836
- ( event.which === tskeyCodes.enter || event.type === 'search' ||
837
- ( event.type === 'change' ||
838
- ( event.type === 'input' && liveSearch === true ) ) &&
839
- this.value !== c.lastSearch[column] )
835
+ // immediate search if user presses enter
836
+ ( event.which === tskeyCodes.enter ||
837
+ // immediate search if a "search" is triggered on the input
838
+ event.type === 'search' ||
839
+ // change & input events must be ignored if liveSearch !== true
840
+ ( event.type === 'change' || event.type === 'input' ) &&
841
+ // prevent search if liveSearch is a number
842
+ liveSearch === true &&
843
+ // don't allow 'change' or 'input' event to process if the input value
844
+ // is the same - fixes #685
845
+ this.value !== c.lastSearch[column]
846
+ )
840
847
  ) {
841
848
  event.preventDefault();
842
849
  // init search with no delay
@@ -856,7 +863,7 @@
856
863
  wo.filter_liveSearch :
857
864
  // get column setting, or set to fallback value, or default to false
858
865
  ts.getColumnData( table, wo.filter_liveSearch, column );
859
- if ( typeof liveSearch !== 'undefined' ) {
866
+ if ( typeof liveSearch === 'undefined' ) {
860
867
  liveSearch = wo.filter_liveSearch.fallback || false;
861
868
  }
862
869
  }
@@ -1,4 +1,4 @@
1
- /* Widget: print - updated 4/11/2016 (v2.25.8) *//*
1
+ /* Widget: print - updated 12/8/2016 (v2.28.1) *//*
2
2
  * Requires tablesorter v2.8+ and jQuery 1.2.6+
3
3
  */
4
4
  /*jshint browser:true, jquery:true, unused:false */
@@ -70,7 +70,7 @@
70
70
  // columnSelector -> c.selector.$style
71
71
  // Assume 'visible' means hidden columns have a 'display:none' style, or a class name
72
72
  // add the definition to the wo.print_extraCSS option
73
- if (/s/i.test(wo.print_columns) && c.selector && c.widgets.indexOf('columnSelector') >= 0) {
73
+ if (/s/i.test(wo.print_columns) && c.selector && ts.hasWidget( c.table, 'columnSelector' )) {
74
74
  // show selected (visible) columns; make a copy of the columnSelector widget css (not media queries)
75
75
  printStyle += wo.columnSelector_mediaquery && c.selector.auto ? '' : c.selector.$style.text();
76
76
  } else if (/a/i.test(wo.print_columns)) {
@@ -1,4 +1,4 @@
1
- /*! Widget: uitheme - updated 7/31/2016 (v2.27.0) */
1
+ /*! Widget: uitheme - updated 12/8/2016 (v2.28.1) */
2
2
  ;(function ($) {
3
3
  'use strict';
4
4
  var ts = $.tablesorter || {};
@@ -124,7 +124,7 @@
124
124
  .addClass(themes.icons || '');
125
125
  }
126
126
  // filter widget initializes after uitheme
127
- if (c.widgets.indexOf('filter') > -1) {
127
+ if (ts.hasWidget( c.table, 'filter' )) {
128
128
  tmp = function() {
129
129
  $table.children('thead').children('.' + ts.css.filterRow)
130
130
  .removeClass(hasOldTheme ? oldtheme.filterRow || '' : '')
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.1
4
+ version: 1.23.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: 2016-11-29 00:00:00.000000000 Z
12
+ date: 2016-12-09 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: railties