jquery-tablesorter 1.20.7 → 1.20.8

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: 3a883912c968abaf85e1a15919affcea7fc240df
4
- data.tar.gz: 4765dad9e983aeac3cf73be3264aea477c5a530b
3
+ metadata.gz: 2e9e9be444cd61966e902ca61fb38e30d870fd22
4
+ data.tar.gz: 9db7ce839fc6b20fedc6478afbd4723fa19bdea8
5
5
  SHA512:
6
- metadata.gz: d9143b451638747d37d6404022d048953b1cad765d74724084f66520a619da206e9128a3abdfced43e040b3cded179fa7933c529adcf798885ddde2417e5140b
7
- data.tar.gz: 17729d112689e6c8e70606c667e6bf7ef13c8fd4180d6a53323c778350bdda30a93e946a15d61e4995c69439b4fe41efcafe05842a49c82caead5990399739f2
6
+ metadata.gz: 033fa5e5d2e2ed0c26c3b0fc3473d0ee551a958e49fddd61c5305f5869a955d47a098b1a259da69cceb56ad4613c4d281f7c8fdf65a1993dc8fbb27cc45389e1
7
+ data.tar.gz: 7479a1ad0d1598784e2b74678fe76e56b34b519515a2713c6661a71152d5f9e15f9b44d229949c2341e2df9311655e89637188a37ef2449dbe5c2210d5be4785
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.25.7 (4/1/2016), [documentation]
7
+ Current tablesorter version: 2.25.8 (4/11/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 = 20
4
- TINY = 7
4
+ TINY = 8
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 04-01-2016 (v2.25.7)*/
7
+ /*! tablesorter (FORK) - updated 04-11-2016 (v2.25.8)*/
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.25.7 *//*
19
+ /*! TableSorter (FORK) v2.25.8 *//*
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.25.7',
42
+ version : '2.25.8',
43
43
 
44
44
  parsers : [],
45
45
  widgets : [],
@@ -959,8 +959,15 @@
959
959
  index = 0;
960
960
  while ( index <= span ) {
961
961
  // duplicate text (or not) to spanned columns
962
- rowData.raw[ cacheIndex + index ] = c.duplicateSpan || index === 0 ? val : '';
963
- cols[ cacheIndex + index ] = c.duplicateSpan || index === 0 ? val : '';
962
+ // instead of setting duplicate span to empty string, use textExtraction to try to get a value
963
+ // see http://stackoverflow.com/q/36449711/145346
964
+ txt = c.duplicateSpan || index === 0 ?
965
+ val :
966
+ typeof c.textExtraction !== 'string' ?
967
+ ts.getElementText( c, cell, cacheIndex + index ) || '' :
968
+ '';
969
+ rowData.raw[ cacheIndex + index ] = txt;
970
+ cols[ cacheIndex + index ] = txt;
964
971
  index++;
965
972
  }
966
973
  cacheIndex += span;
@@ -1,4 +1,4 @@
1
- /*! TableSorter (FORK) v2.25.7 *//*
1
+ /*! TableSorter (FORK) v2.25.8 *//*
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.25.7',
24
+ version : '2.25.8',
25
25
 
26
26
  parsers : [],
27
27
  widgets : [],
@@ -941,8 +941,15 @@
941
941
  index = 0;
942
942
  while ( index <= span ) {
943
943
  // duplicate text (or not) to spanned columns
944
- rowData.raw[ cacheIndex + index ] = c.duplicateSpan || index === 0 ? val : '';
945
- cols[ cacheIndex + index ] = c.duplicateSpan || index === 0 ? val : '';
944
+ // instead of setting duplicate span to empty string, use textExtraction to try to get a value
945
+ // see http://stackoverflow.com/q/36449711/145346
946
+ txt = c.duplicateSpan || index === 0 ?
947
+ val :
948
+ typeof c.textExtraction !== 'string' ?
949
+ ts.getElementText( c, cell, cacheIndex + index ) || '' :
950
+ '';
951
+ rowData.raw[ cacheIndex + index ] = txt;
952
+ cols[ cacheIndex + index ] = txt;
946
953
  index++;
947
954
  }
948
955
  cacheIndex += span;
@@ -4,7 +4,7 @@
4
4
  ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██▀▀ ▀▀▀██
5
5
  █████▀ ▀████▀ ██ ██ ▀████▀ ██ ██ ██ ██ ▀████▀ █████▀ ██ ██ █████▀
6
6
  */
7
- /*! tablesorter (FORK) - updated 04-01-2016 (v2.25.7)*/
7
+ /*! tablesorter (FORK) - updated 04-11-2016 (v2.25.8)*/
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: print - updated 3/1/2016 (v2.25.5) *//*
1
+ /* Widget: print - updated 4/11/2016 (v2.25.8) *//*
2
2
  * Requires tablesorter v2.8+ and jQuery 1.2.6+
3
3
  */
4
4
  /*jshint browser:true, jquery:true, unused:false */
@@ -26,7 +26,7 @@
26
26
  },
27
27
 
28
28
  process : function(c, wo) {
29
- var $this,
29
+ var $this, data,
30
30
  $table = $('<div/>').append(c.$table.clone()),
31
31
  printStyle = printTable.basicStyle + 'table { width: 100%; }' +
32
32
  // hide filter row
@@ -44,6 +44,13 @@
44
44
  $this.text( $this.attr(wo.print_dataAttrib) );
45
45
  });
46
46
 
47
+ // Make sure all lazy loaded images are visible - see #1169
48
+ data = 'data-' + (wo.lazyload_data_attribute || 'original');
49
+ $table.find('img[' + data + ']').each(function(){
50
+ $this = $(this);
51
+ $this.attr('src', $this.attr(data));
52
+ });
53
+
47
54
  // === rows ===
48
55
  // Assume 'visible' means rows hidden by the pager (rows set to 'display:none')
49
56
  // or hidden by a class name which is added to the wo.print_extraCSS definition
@@ -19,6 +19,9 @@
19
19
  .tablesorter-bootstrap .tablesorter-header {
20
20
  cursor: pointer;
21
21
  }
22
+ .tablesorter-bootstrap .sorter-false {
23
+ cursor: default;
24
+ }
22
25
 
23
26
  .tablesorter-bootstrap .tablesorter-header-inner {
24
27
  position: relative;
@@ -31,6 +31,9 @@
31
31
  .tablesorter-bootstrap .tablesorter-header {
32
32
  cursor: pointer;
33
33
  }
34
+ .tablesorter-bootstrap .sorter-false {
35
+ cursor: default;
36
+ }
34
37
 
35
38
  .tablesorter-bootstrap .tablesorter-header-inner {
36
39
  position: relative;
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.20.7
4
+ version: 1.20.8
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-04-01 00:00:00.000000000 Z
12
+ date: 2016-04-13 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: railties