jquery-tablesorter 1.22.0 → 1.22.1

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: 99189ff9a2249c96239ce0a4d41da038186e1cde
4
- data.tar.gz: 679942012457965ded688309186e319f21ef60a9
3
+ metadata.gz: a5bf001ed70299eae9f6ffd84a1878ee97720de1
4
+ data.tar.gz: 7e41fa76354dacaa78786aad45c2d11e4a5cd7a3
5
5
  SHA512:
6
- metadata.gz: 770c688cdc640feea77d202e70ed0052c83e6fdf8941e3bac493037c6a01f5ef17beede2a6cca63314d183ea6a7e73c9b4d80e417ab050bc0f5621717dc32a1f
7
- data.tar.gz: 1396e2d506b053424f68fef6700fb7e6f9169c629635e89b71043c54dd7360bb739f2b1a3ddb7b2a47e9a6ff82708ad650f4bd327ea245c335e600ec4e904e9b
6
+ metadata.gz: ff3f5c1f4e9ac6fe2fbf3839dd377fa2d10430c901a45925fadcc54394629b0ebf006c7032be0e54a325bb9f62e9aca8d9bb2239f510f3d2541cbe2298a8a596
7
+ data.tar.gz: 4fcc3afc79a9ea41f9d43b680a8f674fb4541107afd52d75787e252ef5b9e408bc665f8e5edf7449847af96fc79ea7c84f27f6d09ecf7efe38a0ddc20a3986c7
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.1 (7/31/2016), [documentation]
7
+ Current tablesorter version: 2.27.2 (8/2/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 = 0
4
+ TINY = 1
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 07-31-2016 (v2.27.1)*/
7
+ /*! tablesorter (FORK) - updated 08-02-2016 (v2.27.2)*/
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.1 *//*
19
+ /*! TableSorter (FORK) v2.27.2 *//*
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.1',
43
+ version : '2.27.2',
44
44
 
45
45
  parsers : [],
46
46
  widgets : [],
@@ -2676,8 +2676,8 @@
2676
2676
  });
2677
2677
 
2678
2678
  // match 24 hour time & 12 hours time + am/pm - see http://regexr.com/3c3tk
2679
- ts.regex.timeTest = /^([1-9]|1[0-2]):([0-5]\d)(\s[AP]M)$|^((?:[01]\d|[2][0-4]):[0-5]\d)$/i;
2680
- ts.regex.timeMatch = /([1-9]|1[0-2]):([0-5]\d)(\s[AP]M)|((?:[01]\d|[2][0-4]):[0-5]\d)/i;
2679
+ ts.regex.timeTest = /^(0?[1-9]|1[0-2]):([0-5]\d)(\s[AP]M)$|^((?:[01]\d|[2][0-4]):[0-5]\d)$/i;
2680
+ ts.regex.timeMatch = /(0?[1-9]|1[0-2]):([0-5]\d)(\s[AP]M)|((?:[01]\d|[2][0-4]):[0-5]\d)/i;
2681
2681
  ts.addParser({
2682
2682
  id : 'time',
2683
2683
  is : function( str ) {
@@ -1,4 +1,4 @@
1
- /*! TableSorter (FORK) v2.27.1 *//*
1
+ /*! TableSorter (FORK) v2.27.2 *//*
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.1',
25
+ version : '2.27.2',
26
26
 
27
27
  parsers : [],
28
28
  widgets : [],
@@ -2658,8 +2658,8 @@
2658
2658
  });
2659
2659
 
2660
2660
  // match 24 hour time & 12 hours time + am/pm - see http://regexr.com/3c3tk
2661
- ts.regex.timeTest = /^([1-9]|1[0-2]):([0-5]\d)(\s[AP]M)$|^((?:[01]\d|[2][0-4]):[0-5]\d)$/i;
2662
- ts.regex.timeMatch = /([1-9]|1[0-2]):([0-5]\d)(\s[AP]M)|((?:[01]\d|[2][0-4]):[0-5]\d)/i;
2661
+ ts.regex.timeTest = /^(0?[1-9]|1[0-2]):([0-5]\d)(\s[AP]M)$|^((?:[01]\d|[2][0-4]):[0-5]\d)$/i;
2662
+ ts.regex.timeMatch = /(0?[1-9]|1[0-2]):([0-5]\d)(\s[AP]M)|((?:[01]\d|[2][0-4]):[0-5]\d)/i;
2663
2663
  ts.addParser({
2664
2664
  id : 'time',
2665
2665
  is : function( str ) {
@@ -4,7 +4,7 @@
4
4
  ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██▀▀ ▀▀▀██
5
5
  █████▀ ▀████▀ ██ ██ ▀████▀ ██ ██ ██ ██ ▀████▀ █████▀ ██ ██ █████▀
6
6
  */
7
- /*! tablesorter (FORK) - updated 07-31-2016 (v2.27.1)*/
7
+ /*! tablesorter (FORK) - updated 08-02-2016 (v2.27.2)*/
8
8
  /* Includes widgets ( storage,uitheme,columns,filter,stickyHeaders,resizable,saveSort ) */
9
9
  (function(factory) {
10
10
  if (typeof define === 'function' && define.amd) {
@@ -1,4 +1,4 @@
1
- /*! Widget: mark.js - updated 7/31/2016 (v2.27.1) *//*
1
+ /*! Widget: mark.js - updated 8/1/2016 (v2.27.2) *//*
2
2
  * Requires tablesorter v2.8+ and jQuery 1.7+
3
3
  * by Rob Garrison
4
4
  */
@@ -51,6 +51,8 @@
51
51
  },
52
52
  update : function( c, filters ) {
53
53
  var options = {},
54
+ wo = c.widgetOptions,
55
+ setIgnoreCase = typeof wo.filter_ignoreCase === 'undefined' ? true : wo.filter_ignoreCase,
54
56
  regex = ts.mark.regex,
55
57
  $rows = c.$table
56
58
  .find( 'tbody tr' )
@@ -59,6 +61,12 @@
59
61
  filters = filters || $.tablesorter.getFilters( c.$table );
60
62
  // extract & save mark options from widgetOptions (prefixed with "mark_")
61
63
  // update dynamically
64
+ $.each( c.widgetOptions, function( key, val ) {
65
+ var matches = key.match( regex.mark );
66
+ if ( matches && typeof matches[1] !== 'undefined' ) {
67
+ options[ matches[1] ] = val;
68
+ }
69
+ });
62
70
  $.each( filters, function( indx, filter ) {
63
71
  if ( filter ) {
64
72
  var testRegex = null,
@@ -105,7 +113,10 @@
105
113
  matches = filter.split( regex.filter );
106
114
  }
107
115
  if ( useRegex && matches && matches.length ) {
108
- matches = new RegExp( ts.mark.cleanMatches( matches ).join( '.*' ), 'gim' );
116
+ matches = new RegExp(
117
+ ts.mark.cleanMatches( matches ).join( '.*' ),
118
+ 'gm' + ( setIgnoreCase ? 'i' : '' )
119
+ );
109
120
  if ( ts.mark.checkRegex( matches ) ) {
110
121
  $rows.children( col ).markRegExp( matches, options );
111
122
  }
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.0
4
+ version: 1.22.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: 2016-08-01 00:00:00.000000000 Z
12
+ date: 2016-08-02 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: railties