jquery-tablesorter 1.19.0 → 1.19.1

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: 40f217535544bb820c553a2f8bdeed26e2c263f1
4
- data.tar.gz: 5de31579895566635febec5d43c0f770fb0ba85c
3
+ metadata.gz: 446f8d7b2bb21b67d4dfd395af69341cdab74409
4
+ data.tar.gz: 828e93701510f4ccfa80efede6a3ede377a0b332
5
5
  SHA512:
6
- metadata.gz: df51517aa6ee529aa3c91870e102edc24b83b9bbc532cc6bc786cb961af50eedeff1f637abc38884ca174605a656c42704c494defa0ab51c5f54ceccd88f31b8
7
- data.tar.gz: 5e52487b7d9c35d601a12dd8e988f799ae2d6bbe8779c40b1fcad723a0a7e4b65ab955c247d3fc68e8100b6a5f85741e49b9788c60aa38b9f65e5b663c2e72bf
6
+ metadata.gz: 408631aded81242d22fe3de7107b66498bb88aa40c1a9e9fd198a82e336849743896831ef3d94765653400c16b0436f545947e4740b3d3f80b6834349c0147be
7
+ data.tar.gz: 42a197a6182f37133bd0ab0afb04f2edba9f04eb2ddd53a37d8df4eba6e6186257543c6bf7ce561cddf257b271be5e006912da3121fd0f4e0ba22f9dae254885
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.24.2 (11/2/2015), [documentation]
7
+ Current tablesorter version: 2.24.3 (11/4/2015), [documentation]
8
8
 
9
9
  Any issue associated with the js/css files, please report to [Mottie's fork].
10
10
 
@@ -1,3 +1,3 @@
1
1
  module JqueryTablesorter
2
- VERSION = '1.19.0'
2
+ VERSION = '1.19.1'
3
3
  end
@@ -4,7 +4,7 @@
4
4
  ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██▀▀ ▀▀▀██
5
5
  █████▀ ▀████▀ ██ ██ ▀████▀ ██ ██ ██ ██ ▀████▀ █████▀ ██ ██ █████▀
6
6
  */
7
- /*! tablesorter (FORK) - updated 11-02-2015 (v2.24.2)*/
7
+ /*! tablesorter (FORK) - updated 11-04-2015 (v2.24.3)*/
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.24.2 *//*
19
+ /*! TableSorter (FORK) v2.24.3 *//*
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.24.2',
42
+ version : '2.24.3',
43
43
 
44
44
  parsers : [],
45
45
  widgets : [],
@@ -1037,12 +1037,13 @@
1037
1037
  if ( list[ indx ][ 1 ] !== 2 ) {
1038
1038
  // multicolumn sorting updating - see #1005
1039
1039
  // .not(function(){}) needs jQuery 1.4
1040
- $sorted = c.$headers.filter( function( i, el ) {
1040
+ // filter(function(i, el){}) <- el is undefined in jQuery v1.2.6
1041
+ $sorted = c.$headers.filter( function( i ) {
1041
1042
  // only include headers that are in the sortList (this includes colspans)
1042
1043
  var include = true,
1043
- $el = $( el ),
1044
+ $el = c.$headers.eq( i ),
1044
1045
  col = parseInt( $el.attr( 'data-column' ), 10 ),
1045
- end = col + el.colSpan;
1046
+ end = col + c.$headers[ i ].colSpan;
1046
1047
  for ( ; col < end; col++ ) {
1047
1048
  include = include ? ts.isValueInArray( col, c.sortList ) > -1 : false;
1048
1049
  }
@@ -1424,8 +1425,8 @@
1424
1425
  $header = c.$headers.eq( headerIndx );
1425
1426
  // only reset counts on columns that weren't just clicked on and if not included in a multisort
1426
1427
  if ( $header[ 0 ] !== tmp &&
1427
- ( notMultiSort || !$header.is( '.' + ts.css.sortDesc + ',.' + ts.css.sortAsc ) ) ) {
1428
- c.sortVars[ col ].count = -1;
1428
+ ( notMultiSort || $header.hasClass( ts.css.sortNone ) ) ) {
1429
+ c.sortVars[ $header.attr( 'data-column' ) ].count = -1;
1429
1430
  }
1430
1431
  }
1431
1432
  }
@@ -2983,7 +2984,7 @@
2983
2984
 
2984
2985
  })(jQuery);
2985
2986
 
2986
- /*! Widget: filter - updated 10/31/2015 (v2.24.0) *//*
2987
+ /*! Widget: filter - updated 11/4/2015 (v2.24.3) *//*
2987
2988
  * Requires tablesorter v2.8+ and jQuery 1.7+
2988
2989
  * by Rob Garrison
2989
2990
  */
@@ -3823,6 +3824,8 @@
3823
3824
  c.lastCombinedFilter = null;
3824
3825
  c.lastSearch = [];
3825
3826
  }
3827
+ // convert filters to strings (maybe not the best method)- see #1070
3828
+ filters = filters.join( '\u0000' ).split( '\u0000' );
3826
3829
  if ( wo.filter_initialized ) {
3827
3830
  c.$table.trigger( 'filterStart', [ filters ] );
3828
3831
  }
@@ -4693,6 +4696,10 @@
4693
4696
  ts.setFilters = function( table, filter, apply, skipFirst ) {
4694
4697
  var c = table ? $( table )[0].config : '',
4695
4698
  valid = ts.getFilters( table, true, filter, skipFirst );
4699
+ // default apply to "true"
4700
+ if ( typeof apply === 'undefined' ) {
4701
+ apply = true;
4702
+ }
4696
4703
  if ( c && apply ) {
4697
4704
  // ensure new set filters are applied, even if the search is the same
4698
4705
  c.lastCombinedFilter = null;
@@ -4994,7 +5001,7 @@
4994
5001
 
4995
5002
  })(jQuery, window);
4996
5003
 
4997
- /*! Widget: resizable - updated 6/26/2015 (v2.22.2) */
5004
+ /*! Widget: resizable - updated 11/4/2015 (v2.24.3) */
4998
5005
  /*jshint browser:true, jquery:true, unused:false */
4999
5006
  ;(function ($, window) {
5000
5007
  'use strict';
@@ -5098,10 +5105,8 @@
5098
5105
  .bind( 'selectstart', false );
5099
5106
  }
5100
5107
  }
5101
- $table.one('tablesorter-initialized', function() {
5102
- ts.resizable.setHandlePosition( c, wo );
5103
- ts.resizable.bindings( this.config, this.config.widgetOptions );
5104
- });
5108
+ ts.resizable.setHandlePosition( c, wo );
5109
+ ts.resizable.bindings( c, wo );
5105
5110
  },
5106
5111
 
5107
5112
  updateStoredSizes : function( c, wo ) {
@@ -5184,9 +5189,9 @@
5184
5189
  },
5185
5190
 
5186
5191
  // prevent text selection while dragging resize bar
5187
- toggleTextSelection : function( c, toggle ) {
5192
+ toggleTextSelection : function( c, wo, toggle ) {
5188
5193
  var namespace = c.namespace + 'tsresize';
5189
- c.widgetOptions.resizable_vars.disabled = toggle;
5194
+ wo.resizable_vars.disabled = toggle;
5190
5195
  $( 'body' ).toggleClass( ts.css.resizableNoSelect, toggle );
5191
5196
  if ( toggle ) {
5192
5197
  $( 'body' )
@@ -5223,7 +5228,7 @@
5223
5228
 
5224
5229
  vars.mouseXPosition = event.pageX;
5225
5230
  ts.resizable.updateStoredSizes( c, wo );
5226
- ts.resizable.toggleTextSelection( c, true );
5231
+ ts.resizable.toggleTextSelection(c, wo, true );
5227
5232
  });
5228
5233
 
5229
5234
  $( document )
@@ -5242,7 +5247,7 @@
5242
5247
  })
5243
5248
  .bind( 'mouseup' + namespace, function() {
5244
5249
  if (!wo.resizable_vars.disabled) { return; }
5245
- ts.resizable.toggleTextSelection( c, false );
5250
+ ts.resizable.toggleTextSelection( c, wo, false );
5246
5251
  ts.resizable.stopResize( c, wo );
5247
5252
  ts.resizable.setHandlePosition( c, wo );
5248
5253
  });
@@ -5347,7 +5352,7 @@
5347
5352
  .unbind( 'contextmenu' + namespace );
5348
5353
 
5349
5354
  wo.$resizable_container.remove();
5350
- ts.resizable.toggleTextSelection( c, false );
5355
+ ts.resizable.toggleTextSelection( c, wo, false );
5351
5356
  ts.resizableReset( table, refreshing );
5352
5357
  $( document ).unbind( 'mousemove' + namespace + ' mouseup' + namespace );
5353
5358
  }
@@ -1,4 +1,4 @@
1
- /*! TableSorter (FORK) v2.24.2 *//*
1
+ /*! TableSorter (FORK) v2.24.3 *//*
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.24.2',
24
+ version : '2.24.3',
25
25
 
26
26
  parsers : [],
27
27
  widgets : [],
@@ -1019,12 +1019,13 @@
1019
1019
  if ( list[ indx ][ 1 ] !== 2 ) {
1020
1020
  // multicolumn sorting updating - see #1005
1021
1021
  // .not(function(){}) needs jQuery 1.4
1022
- $sorted = c.$headers.filter( function( i, el ) {
1022
+ // filter(function(i, el){}) <- el is undefined in jQuery v1.2.6
1023
+ $sorted = c.$headers.filter( function( i ) {
1023
1024
  // only include headers that are in the sortList (this includes colspans)
1024
1025
  var include = true,
1025
- $el = $( el ),
1026
+ $el = c.$headers.eq( i ),
1026
1027
  col = parseInt( $el.attr( 'data-column' ), 10 ),
1027
- end = col + el.colSpan;
1028
+ end = col + c.$headers[ i ].colSpan;
1028
1029
  for ( ; col < end; col++ ) {
1029
1030
  include = include ? ts.isValueInArray( col, c.sortList ) > -1 : false;
1030
1031
  }
@@ -1406,8 +1407,8 @@
1406
1407
  $header = c.$headers.eq( headerIndx );
1407
1408
  // only reset counts on columns that weren't just clicked on and if not included in a multisort
1408
1409
  if ( $header[ 0 ] !== tmp &&
1409
- ( notMultiSort || !$header.is( '.' + ts.css.sortDesc + ',.' + ts.css.sortAsc ) ) ) {
1410
- c.sortVars[ col ].count = -1;
1410
+ ( notMultiSort || $header.hasClass( ts.css.sortNone ) ) ) {
1411
+ c.sortVars[ $header.attr( 'data-column' ) ].count = -1;
1411
1412
  }
1412
1413
  }
1413
1414
  }
@@ -4,7 +4,7 @@
4
4
  ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██▀▀ ▀▀▀██
5
5
  █████▀ ▀████▀ ██ ██ ▀████▀ ██ ██ ██ ██ ▀████▀ █████▀ ██ ██ █████▀
6
6
  */
7
- /*! tablesorter (FORK) - updated 11-02-2015 (v2.24.2)*/
7
+ /*! tablesorter (FORK) - updated 11-04-2015 (v2.24.3)*/
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 10/31/2015 (v2.24.0) *//*
375
+ /*! Widget: filter - updated 11/4/2015 (v2.24.3) *//*
376
376
  * Requires tablesorter v2.8+ and jQuery 1.7+
377
377
  * by Rob Garrison
378
378
  */
@@ -1212,6 +1212,8 @@
1212
1212
  c.lastCombinedFilter = null;
1213
1213
  c.lastSearch = [];
1214
1214
  }
1215
+ // convert filters to strings (maybe not the best method)- see #1070
1216
+ filters = filters.join( '\u0000' ).split( '\u0000' );
1215
1217
  if ( wo.filter_initialized ) {
1216
1218
  c.$table.trigger( 'filterStart', [ filters ] );
1217
1219
  }
@@ -2082,6 +2084,10 @@
2082
2084
  ts.setFilters = function( table, filter, apply, skipFirst ) {
2083
2085
  var c = table ? $( table )[0].config : '',
2084
2086
  valid = ts.getFilters( table, true, filter, skipFirst );
2087
+ // default apply to "true"
2088
+ if ( typeof apply === 'undefined' ) {
2089
+ apply = true;
2090
+ }
2085
2091
  if ( c && apply ) {
2086
2092
  // ensure new set filters are applied, even if the search is the same
2087
2093
  c.lastCombinedFilter = null;
@@ -2383,7 +2389,7 @@
2383
2389
 
2384
2390
  })(jQuery, window);
2385
2391
 
2386
- /*! Widget: resizable - updated 6/26/2015 (v2.22.2) */
2392
+ /*! Widget: resizable - updated 11/4/2015 (v2.24.3) */
2387
2393
  /*jshint browser:true, jquery:true, unused:false */
2388
2394
  ;(function ($, window) {
2389
2395
  'use strict';
@@ -2487,10 +2493,8 @@
2487
2493
  .bind( 'selectstart', false );
2488
2494
  }
2489
2495
  }
2490
- $table.one('tablesorter-initialized', function() {
2491
- ts.resizable.setHandlePosition( c, wo );
2492
- ts.resizable.bindings( this.config, this.config.widgetOptions );
2493
- });
2496
+ ts.resizable.setHandlePosition( c, wo );
2497
+ ts.resizable.bindings( c, wo );
2494
2498
  },
2495
2499
 
2496
2500
  updateStoredSizes : function( c, wo ) {
@@ -2573,9 +2577,9 @@
2573
2577
  },
2574
2578
 
2575
2579
  // prevent text selection while dragging resize bar
2576
- toggleTextSelection : function( c, toggle ) {
2580
+ toggleTextSelection : function( c, wo, toggle ) {
2577
2581
  var namespace = c.namespace + 'tsresize';
2578
- c.widgetOptions.resizable_vars.disabled = toggle;
2582
+ wo.resizable_vars.disabled = toggle;
2579
2583
  $( 'body' ).toggleClass( ts.css.resizableNoSelect, toggle );
2580
2584
  if ( toggle ) {
2581
2585
  $( 'body' )
@@ -2612,7 +2616,7 @@
2612
2616
 
2613
2617
  vars.mouseXPosition = event.pageX;
2614
2618
  ts.resizable.updateStoredSizes( c, wo );
2615
- ts.resizable.toggleTextSelection( c, true );
2619
+ ts.resizable.toggleTextSelection(c, wo, true );
2616
2620
  });
2617
2621
 
2618
2622
  $( document )
@@ -2631,7 +2635,7 @@
2631
2635
  })
2632
2636
  .bind( 'mouseup' + namespace, function() {
2633
2637
  if (!wo.resizable_vars.disabled) { return; }
2634
- ts.resizable.toggleTextSelection( c, false );
2638
+ ts.resizable.toggleTextSelection( c, wo, false );
2635
2639
  ts.resizable.stopResize( c, wo );
2636
2640
  ts.resizable.setHandlePosition( c, wo );
2637
2641
  });
@@ -2736,7 +2740,7 @@
2736
2740
  .unbind( 'contextmenu' + namespace );
2737
2741
 
2738
2742
  wo.$resizable_container.remove();
2739
- ts.resizable.toggleTextSelection( c, false );
2743
+ ts.resizable.toggleTextSelection( c, wo, false );
2740
2744
  ts.resizableReset( table, refreshing );
2741
2745
  $( document ).unbind( 'mousemove' + namespace + ' mouseup' + namespace );
2742
2746
  }
@@ -1,4 +1,4 @@
1
- /*! Widget: filter - updated 10/31/2015 (v2.24.0) *//*
1
+ /*! Widget: filter - updated 11/4/2015 (v2.24.3) *//*
2
2
  * Requires tablesorter v2.8+ and jQuery 1.7+
3
3
  * by Rob Garrison
4
4
  */
@@ -838,6 +838,8 @@
838
838
  c.lastCombinedFilter = null;
839
839
  c.lastSearch = [];
840
840
  }
841
+ // convert filters to strings (maybe not the best method)- see #1070
842
+ filters = filters.join( '\u0000' ).split( '\u0000' );
841
843
  if ( wo.filter_initialized ) {
842
844
  c.$table.trigger( 'filterStart', [ filters ] );
843
845
  }
@@ -1708,6 +1710,10 @@
1708
1710
  ts.setFilters = function( table, filter, apply, skipFirst ) {
1709
1711
  var c = table ? $( table )[0].config : '',
1710
1712
  valid = ts.getFilters( table, true, filter, skipFirst );
1713
+ // default apply to "true"
1714
+ if ( typeof apply === 'undefined' ) {
1715
+ apply = true;
1716
+ }
1711
1717
  if ( c && apply ) {
1712
1718
  // ensure new set filters are applied, even if the search is the same
1713
1719
  c.lastCombinedFilter = null;
@@ -1,4 +1,4 @@
1
- /*! Widget: resizable - updated 6/26/2015 (v2.22.2) */
1
+ /*! Widget: resizable - updated 11/4/2015 (v2.24.3) */
2
2
  /*jshint browser:true, jquery:true, unused:false */
3
3
  ;(function ($, window) {
4
4
  'use strict';
@@ -102,10 +102,8 @@
102
102
  .bind( 'selectstart', false );
103
103
  }
104
104
  }
105
- $table.one('tablesorter-initialized', function() {
106
- ts.resizable.setHandlePosition( c, wo );
107
- ts.resizable.bindings( this.config, this.config.widgetOptions );
108
- });
105
+ ts.resizable.setHandlePosition( c, wo );
106
+ ts.resizable.bindings( c, wo );
109
107
  },
110
108
 
111
109
  updateStoredSizes : function( c, wo ) {
@@ -188,9 +186,9 @@
188
186
  },
189
187
 
190
188
  // prevent text selection while dragging resize bar
191
- toggleTextSelection : function( c, toggle ) {
189
+ toggleTextSelection : function( c, wo, toggle ) {
192
190
  var namespace = c.namespace + 'tsresize';
193
- c.widgetOptions.resizable_vars.disabled = toggle;
191
+ wo.resizable_vars.disabled = toggle;
194
192
  $( 'body' ).toggleClass( ts.css.resizableNoSelect, toggle );
195
193
  if ( toggle ) {
196
194
  $( 'body' )
@@ -227,7 +225,7 @@
227
225
 
228
226
  vars.mouseXPosition = event.pageX;
229
227
  ts.resizable.updateStoredSizes( c, wo );
230
- ts.resizable.toggleTextSelection( c, true );
228
+ ts.resizable.toggleTextSelection(c, wo, true );
231
229
  });
232
230
 
233
231
  $( document )
@@ -246,7 +244,7 @@
246
244
  })
247
245
  .bind( 'mouseup' + namespace, function() {
248
246
  if (!wo.resizable_vars.disabled) { return; }
249
- ts.resizable.toggleTextSelection( c, false );
247
+ ts.resizable.toggleTextSelection( c, wo, false );
250
248
  ts.resizable.stopResize( c, wo );
251
249
  ts.resizable.setHandlePosition( c, wo );
252
250
  });
@@ -351,7 +349,7 @@
351
349
  .unbind( 'contextmenu' + namespace );
352
350
 
353
351
  wo.$resizable_container.remove();
354
- ts.resizable.toggleTextSelection( c, false );
352
+ ts.resizable.toggleTextSelection( c, wo, false );
355
353
  ts.resizableReset( table, refreshing );
356
354
  $( document ).unbind( 'mousemove' + namespace + ' mouseup' + namespace );
357
355
  }
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.19.0
4
+ version: 1.19.1
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: 2015-11-03 00:00:00.000000000 Z
12
+ date: 2015-11-05 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: railties