jquery-tablesorter 1.22.2 → 1.22.3

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: 35dc90e1f792d4a46f45d7a88b76958bddc061a1
4
- data.tar.gz: cb29ed17770ac1af85805cb0efd7266cc5ebfaad
3
+ metadata.gz: 7587e910fb30ba6d5b0e3508c6d5da2ca340adb2
4
+ data.tar.gz: f3c1144fe98d449548ebbbe79d52fce9ea518dc1
5
5
  SHA512:
6
- metadata.gz: 9930a25b62b622e444700fc3781e0b9fca08901cf97fc571ba70235cddc3b95608cf569340cdfa61aeb48cdd18b5fb79eebf3b4dc9b5e037b390d84e77c81c1b
7
- data.tar.gz: 39fca626e49d9ffad96cd5e2ed9739fea3a90c8520a760e81389d301de741a9a52a0502a4d8a274eb7bc74a43f4185a0f0b9f70a81f505b7e15d56781c24fb01
6
+ metadata.gz: ba1d32c39e8056a70d06d873eab3b91a64be4a3bdc7970e2f1084744eebbf8048dd028808c0cae96b095fac709b90e054b954528a580e48454c32f286687d68e
7
+ data.tar.gz: ad055e80e1c5e99542b23a167ec5f3a3165247a3f41923d526fb2527b2c7d5c0ec62e73bc098549f709bf19d1d3be2687f4d6171b46df1ebfa7adc33c0353b37
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.27.3 (8/17/2016), [documentation]
7
+ Current tablesorter version: 2.27.5 (8/22/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 = 22
4
- TINY = 2
4
+ TINY = 3
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 08-17-2016 (v2.27.3)*/
7
+ /*! tablesorter (FORK) - updated 08-22-2016 (v2.27.5)*/
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.27.3 *//*
19
+ /*! TableSorter (FORK) v2.27.5 *//*
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.27.3',
43
+ version : '2.27.5',
44
44
 
45
45
  parsers : [],
46
46
  widgets : [],
@@ -3126,7 +3126,7 @@
3126
3126
 
3127
3127
  })(jQuery);
3128
3128
 
3129
- /*! Widget: filter - updated 8/17/2016 (v2.27.3) *//*
3129
+ /*! Widget: filter - updated 8/22/2016 (v2.27.5) *//*
3130
3130
  * Requires tablesorter v2.8+ and jQuery 1.7+
3131
3131
  * by Rob Garrison
3132
3132
  */
@@ -4467,7 +4467,17 @@
4467
4467
  res = query[ indx ].split( ':' );
4468
4468
  if ( res.length > 1 ) {
4469
4469
  // make the column a one-based index ( non-developers start counting from one :P )
4470
- id = parseInt( res[0], 10 ) - 1;
4470
+ if ( isNaN( res[0] ) ) {
4471
+ $.each( c.headerContent, function( i, txt ) {
4472
+ // multiple matches are possible
4473
+ if ( txt.toLowerCase().indexOf( res[0] ) > -1 ) {
4474
+ id = i;
4475
+ filters[ id ] = res[1];
4476
+ }
4477
+ });
4478
+ } else {
4479
+ id = parseInt( res[0], 10 ) - 1;
4480
+ }
4471
4481
  if ( id >= 0 && id < c.columns ) { // if id is an integer
4472
4482
  filters[ id ] = res[1];
4473
4483
  query.splice( indx, 1 );
@@ -1,4 +1,4 @@
1
- /*! TableSorter (FORK) v2.27.3 *//*
1
+ /*! TableSorter (FORK) v2.27.5 *//*
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.27.3',
25
+ version : '2.27.5',
26
26
 
27
27
  parsers : [],
28
28
  widgets : [],
@@ -4,7 +4,7 @@
4
4
  ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██▀▀ ▀▀▀██
5
5
  █████▀ ▀████▀ ██ ██ ▀████▀ ██ ██ ██ ██ ▀████▀ █████▀ ██ ██ █████▀
6
6
  */
7
- /*! tablesorter (FORK) - updated 08-17-2016 (v2.27.3)*/
7
+ /*! tablesorter (FORK) - updated 08-22-2016 (v2.27.5)*/
8
8
  /* Includes widgets ( storage,uitheme,columns,filter,stickyHeaders,resizable,saveSort ) */
9
9
  (function(factory) {
10
10
  if (typeof define === 'function' && define.amd) {
@@ -382,7 +382,7 @@
382
382
 
383
383
  })(jQuery);
384
384
 
385
- /*! Widget: filter - updated 8/17/2016 (v2.27.3) *//*
385
+ /*! Widget: filter - updated 8/22/2016 (v2.27.5) *//*
386
386
  * Requires tablesorter v2.8+ and jQuery 1.7+
387
387
  * by Rob Garrison
388
388
  */
@@ -1723,7 +1723,17 @@
1723
1723
  res = query[ indx ].split( ':' );
1724
1724
  if ( res.length > 1 ) {
1725
1725
  // make the column a one-based index ( non-developers start counting from one :P )
1726
- id = parseInt( res[0], 10 ) - 1;
1726
+ if ( isNaN( res[0] ) ) {
1727
+ $.each( c.headerContent, function( i, txt ) {
1728
+ // multiple matches are possible
1729
+ if ( txt.toLowerCase().indexOf( res[0] ) > -1 ) {
1730
+ id = i;
1731
+ filters[ id ] = res[1];
1732
+ }
1733
+ });
1734
+ } else {
1735
+ id = parseInt( res[0], 10 ) - 1;
1736
+ }
1727
1737
  if ( id >= 0 && id < c.columns ) { // if id is an integer
1728
1738
  filters[ id ] = res[1];
1729
1739
  query.splice( indx, 1 );
@@ -1,10 +1,11 @@
1
- /*! Parser: dates - updated 10/26/2014 (v2.18.0) */
1
+ /*! Parser: dates - updated 8/22/2016 (v2.27.5) */
2
2
  /* Extract dates using popular natural language date parsers */
3
3
  /*jshint jquery:true */
4
+ /*global Sugar*/
4
5
  ;(function($){
5
6
  'use strict';
6
7
 
7
- /*! Sugar (http://sugarjs.com/dates#comparing_dates) */
8
+ /*! Sugar (https://sugarjs.com/docs/#/DateParsing) */
8
9
  /* demo: http://jsfiddle.net/Mottie/abkNM/4163/ */
9
10
  $.tablesorter.addParser({
10
11
  id: 'sugar',
@@ -12,7 +13,9 @@
12
13
  return false;
13
14
  },
14
15
  format: function(s) {
15
- var date = Date.create ? Date.create(s) : s ? new Date(s) : s;
16
+ // Add support for sugar v2.0+
17
+ var create = Date.create || Sugar.Date.create,
18
+ date = create ? create(s) : s ? new Date(s) : s;
16
19
  return date instanceof Date && isFinite(date) ? date.getTime() : s;
17
20
  },
18
21
  type: 'numeric'
@@ -1,4 +1,4 @@
1
- /*! Widget: filter - updated 8/17/2016 (v2.27.3) *//*
1
+ /*! Widget: filter - updated 8/22/2016 (v2.27.5) *//*
2
2
  * Requires tablesorter v2.8+ and jQuery 1.7+
3
3
  * by Rob Garrison
4
4
  */
@@ -1339,7 +1339,17 @@
1339
1339
  res = query[ indx ].split( ':' );
1340
1340
  if ( res.length > 1 ) {
1341
1341
  // make the column a one-based index ( non-developers start counting from one :P )
1342
- id = parseInt( res[0], 10 ) - 1;
1342
+ if ( isNaN( res[0] ) ) {
1343
+ $.each( c.headerContent, function( i, txt ) {
1344
+ // multiple matches are possible
1345
+ if ( txt.toLowerCase().indexOf( res[0] ) > -1 ) {
1346
+ id = i;
1347
+ filters[ id ] = res[1];
1348
+ }
1349
+ });
1350
+ } else {
1351
+ id = parseInt( res[0], 10 ) - 1;
1352
+ }
1343
1353
  if ( id >= 0 && id < c.columns ) { // if id is an integer
1344
1354
  filters[ id ] = res[1];
1345
1355
  query.splice( indx, 1 );
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.22.2
4
+ version: 1.22.3
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-08-17 00:00:00.000000000 Z
12
+ date: 2016-08-22 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: railties