jquery-tablesorter 1.21.1 → 1.21.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -4,7 +4,7 @@
4
4
  ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██▀▀ ▀▀▀██
5
5
  █████▀ ▀████▀ ██ ██ ▀████▀ ██ ██ ██ ██ ▀████▀ █████▀ ██ ██ █████▀
6
6
  */
7
- /*! tablesorter (FORK) - updated 05-16-2016 (v2.26.1)*/
7
+ /*! tablesorter (FORK) - updated 06-15-2016 (v2.26.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($) {
18
18
 
19
- /*! TableSorter (FORK) v2.26.1 *//*
19
+ /*! TableSorter (FORK) v2.26.4 *//*
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.26.1',
42
+ version : '2.26.4',
43
43
 
44
44
  parsers : [],
45
45
  widgets : [],
@@ -3104,7 +3104,7 @@
3104
3104
 
3105
3105
  })(jQuery);
3106
3106
 
3107
- /*! Widget: filter - updated 4/29/2016 (v2.25.9) *//*
3107
+ /*! Widget: filter - updated 5/28/2016 (v2.26.2) *//*
3108
3108
  * Requires tablesorter v2.8+ and jQuery 1.7+
3109
3109
  * by Rob Garrison
3110
3110
  */
@@ -3368,7 +3368,11 @@
3368
3368
  return filter === '' ? true : $.trim( filter ) !== data.iExact;
3369
3369
  } else {
3370
3370
  indx = data.iExact.search( $.trim( filter ) );
3371
- return filter === '' ? true : !( c.widgetOptions.filter_startsWith ? indx === 0 : indx >= 0 );
3371
+ return filter === '' ? true :
3372
+ // return true if not found
3373
+ data.anyMatch ? indx < 0 :
3374
+ // return false if found
3375
+ !( c.widgetOptions.filter_startsWith ? indx === 0 : indx >= 0 );
3372
3376
  }
3373
3377
  }
3374
3378
  return null;
@@ -4187,7 +4191,6 @@
4187
4191
  // look for multiple columns '1-3,4-6,8'
4188
4192
  tsf.multipleColumns( c, wo.filter_$anyMatch ) :
4189
4193
  [];
4190
-
4191
4194
  data.$cells = data.$row.children();
4192
4195
  if ( data.anyMatchFlag && columnIndex.length > 1 || data.anyMatchFilter ) {
4193
4196
  data.anyMatch = true;
@@ -4331,7 +4334,7 @@
4331
4334
  },
4332
4335
  vars = {
4333
4336
  // anyMatch really screws up with these types of filters
4334
- noAnyMatch: [ 'range', 'notMatch', 'operators' ],
4337
+ noAnyMatch: [ 'range', 'operators' ],
4335
4338
  // cache filter variables that use ts.getColumnData in the main loop
4336
4339
  functions : [],
4337
4340
  excludeFilter : [],
@@ -5227,7 +5230,7 @@
5227
5230
 
5228
5231
  })(jQuery, window);
5229
5232
 
5230
- /*! Widget: resizable - updated 11/4/2015 (v2.24.3) */
5233
+ /*! Widget: resizable - updated 5/16/2015 (v2.26.1) */
5231
5234
  /*jshint browser:true, jquery:true, unused:false */
5232
5235
  ;(function ($, window) {
5233
5236
  'use strict';
@@ -1,4 +1,4 @@
1
- /*! TableSorter (FORK) v2.26.1 *//*
1
+ /*! TableSorter (FORK) v2.26.4 *//*
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.26.1',
24
+ version : '2.26.4',
25
25
 
26
26
  parsers : [],
27
27
  widgets : [],
@@ -4,7 +4,7 @@
4
4
  ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██▀▀ ▀▀▀██
5
5
  █████▀ ▀████▀ ██ ██ ▀████▀ ██ ██ ██ ██ ▀████▀ █████▀ ██ ██ █████▀
6
6
  */
7
- /*! tablesorter (FORK) - updated 05-16-2016 (v2.26.1)*/
7
+ /*! tablesorter (FORK) - updated 06-15-2016 (v2.26.4)*/
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 4/29/2016 (v2.25.9) *//*
375
+ /*! Widget: filter - updated 5/28/2016 (v2.26.2) *//*
376
376
  * Requires tablesorter v2.8+ and jQuery 1.7+
377
377
  * by Rob Garrison
378
378
  */
@@ -636,7 +636,11 @@
636
636
  return filter === '' ? true : $.trim( filter ) !== data.iExact;
637
637
  } else {
638
638
  indx = data.iExact.search( $.trim( filter ) );
639
- return filter === '' ? true : !( c.widgetOptions.filter_startsWith ? indx === 0 : indx >= 0 );
639
+ return filter === '' ? true :
640
+ // return true if not found
641
+ data.anyMatch ? indx < 0 :
642
+ // return false if found
643
+ !( c.widgetOptions.filter_startsWith ? indx === 0 : indx >= 0 );
640
644
  }
641
645
  }
642
646
  return null;
@@ -1455,7 +1459,6 @@
1455
1459
  // look for multiple columns '1-3,4-6,8'
1456
1460
  tsf.multipleColumns( c, wo.filter_$anyMatch ) :
1457
1461
  [];
1458
-
1459
1462
  data.$cells = data.$row.children();
1460
1463
  if ( data.anyMatchFlag && columnIndex.length > 1 || data.anyMatchFilter ) {
1461
1464
  data.anyMatch = true;
@@ -1599,7 +1602,7 @@
1599
1602
  },
1600
1603
  vars = {
1601
1604
  // anyMatch really screws up with these types of filters
1602
- noAnyMatch: [ 'range', 'notMatch', 'operators' ],
1605
+ noAnyMatch: [ 'range', 'operators' ],
1603
1606
  // cache filter variables that use ts.getColumnData in the main loop
1604
1607
  functions : [],
1605
1608
  excludeFilter : [],
@@ -2495,7 +2498,7 @@
2495
2498
 
2496
2499
  })(jQuery, window);
2497
2500
 
2498
- /*! Widget: resizable - updated 11/4/2015 (v2.24.3) */
2501
+ /*! Widget: resizable - updated 5/16/2015 (v2.26.1) */
2499
2502
  /*jshint browser:true, jquery:true, unused:false */
2500
2503
  ;(function ($, window) {
2501
2504
  'use strict';
@@ -1,5 +1,6 @@
1
- /*! Widget: filter, select2 formatter function - updated 3/26/2015 (v2.21.3) *//*
2
- * requires: jQuery 1.7.2+, tableSorter (FORK) 2.16+, filter widget 2.16+ and select2 v3.4.6+ plugin
1
+ /*! Widget: filter, select2 formatter function - updated 5/28/2016 (v2.26.2) *//*
2
+ * requires: jQuery 1.7.2+, tableSorter (FORK) 2.16+, filter widget 2.16+
3
+ and select2 v3.4.6+ plugin (this code is NOT compatible with select2 v4+)
3
4
  */
4
5
  /*jshint browser:true, jquery:true, unused:false */
5
6
  /*global jQuery: false */
@@ -74,7 +75,8 @@
74
75
  arry = ts.filter.getOptionSource(c.$table[0], indx, onlyAvail) || [];
75
76
  // build select2 data option
76
77
  $.each(arry, function(i, v){
77
- data.push({id: v, text: v});
78
+ // getOptionSource returns { parsed: "value", text: "value" } in v2.24.4
79
+ data.push({ id: '' + v.parsed, text: v.text });
78
80
  });
79
81
  o.data = data;
80
82
  };
@@ -118,7 +120,7 @@
118
120
 
119
121
  // has sticky headers?
120
122
  c.$table.bind('stickyHeadersInit', function(){
121
- $shcell = c.widgetOptions.$sticky.find('.tablesorter-filter-row').children().eq(indx).empty();
123
+ $shcell = c.widgetOptions.$sticky.find('.' + ts.css.filterRow).children().eq(indx).empty();
122
124
  // add a select2!
123
125
  $('<input class="select2 select2-' + indx + '" type="hidden">')
124
126
  .val(o.value)
@@ -1,4 +1,4 @@
1
- /*! Widget: filter - updated 4/29/2016 (v2.25.9) *//*
1
+ /*! Widget: filter - updated 5/28/2016 (v2.26.2) *//*
2
2
  * Requires tablesorter v2.8+ and jQuery 1.7+
3
3
  * by Rob Garrison
4
4
  */
@@ -262,7 +262,11 @@
262
262
  return filter === '' ? true : $.trim( filter ) !== data.iExact;
263
263
  } else {
264
264
  indx = data.iExact.search( $.trim( filter ) );
265
- return filter === '' ? true : !( c.widgetOptions.filter_startsWith ? indx === 0 : indx >= 0 );
265
+ return filter === '' ? true :
266
+ // return true if not found
267
+ data.anyMatch ? indx < 0 :
268
+ // return false if found
269
+ !( c.widgetOptions.filter_startsWith ? indx === 0 : indx >= 0 );
266
270
  }
267
271
  }
268
272
  return null;
@@ -1081,7 +1085,6 @@
1081
1085
  // look for multiple columns '1-3,4-6,8'
1082
1086
  tsf.multipleColumns( c, wo.filter_$anyMatch ) :
1083
1087
  [];
1084
-
1085
1088
  data.$cells = data.$row.children();
1086
1089
  if ( data.anyMatchFlag && columnIndex.length > 1 || data.anyMatchFilter ) {
1087
1090
  data.anyMatch = true;
@@ -1225,7 +1228,7 @@
1225
1228
  },
1226
1229
  vars = {
1227
1230
  // anyMatch really screws up with these types of filters
1228
- noAnyMatch: [ 'range', 'notMatch', 'operators' ],
1231
+ noAnyMatch: [ 'range', 'operators' ],
1229
1232
  // cache filter variables that use ts.getColumnData in the main loop
1230
1233
  functions : [],
1231
1234
  excludeFilter : [],
@@ -1,4 +1,4 @@
1
- /*! Widget: grouping - updated 3/1/2016 (v2.25.5) *//*
1
+ /*! Widget: grouping - updated 5/16/2015 (v2.26.1) *//*
2
2
  * Requires tablesorter v2.8+ and jQuery 1.7+
3
3
  * by Rob Garrison
4
4
  */
@@ -1,4 +1,4 @@
1
- /*! Widget: resizable - updated 11/4/2015 (v2.24.3) */
1
+ /*! Widget: resizable - updated 5/16/2015 (v2.26.1) */
2
2
  /*jshint browser:true, jquery:true, unused:false */
3
3
  ;(function ($, window) {
4
4
  'use strict';
@@ -1,4 +1,4 @@
1
- /*! Widget: scroller - updated 4/29/2016 (v2.25.9) *//*
1
+ /*! Widget: scroller - updated 6/15/2016 (v2.26.3) *//*
2
2
  Copyright (C) 2011 T. Connell & Associates, Inc.
3
3
 
4
4
  Dual-licensed under the MIT and GPL licenses
@@ -787,10 +787,11 @@
787
787
 
788
788
  $fixedColumn.removeClass( tscss.scrollerHideElement );
789
789
  for ( index = 0; index < fixedColumns; index++ ) {
790
+ temp = ':nth-child(' + ( index + 1 ) + ')';
790
791
  $wrapper
791
792
  .children( 'div' )
792
793
  .children( 'table' )
793
- .find( 'th:nth-child(' + ( index + 1 ) + '), td:nth-child(' + ( index + 1 ) + ')' )
794
+ .find( 'th' + temp + ', td' + temp + ', col' + temp )
794
795
  .addClass( tscss.scrollerHideColumn );
795
796
  }
796
797
 
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.21.1
4
+ version: 1.21.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-05-18 00:00:00.000000000 Z
12
+ date: 2016-06-16 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: railties