jquery-tablesorter 1.23.2 → 1.23.3

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: d087e39adb7903142943b53543ab998939170f28
4
- data.tar.gz: 80d56d592f13a994f2fa4d2dcddab31237b5b226
3
+ metadata.gz: 5e9c0d9a4d6e4769ef2ac103238497f8b9699c8c
4
+ data.tar.gz: 80782010232bbb530597479542a5aa8a745305eb
5
5
  SHA512:
6
- metadata.gz: a719108eafd7d9a2bcabf62ad5ed3a4eb179fc6a41603c803e57ebaf08224bf3896d68483a73c7b040283b5b6971173c4b66ecda261d1e5ada5405823d7c48ee
7
- data.tar.gz: d5f4c4a0d8a1773086a1e56b858b2100c9ff899a3ba6d0d5df814ab94edd58d954ded4d22d1cd510f88efa0e766fe01b65c838768f0fc711bec1497e17c3d1ea
6
+ metadata.gz: 982e0c312651b560d163cd42baa36c304f0aa3d39066efc4da635dbc66bb9641463c596d0e46a8dd8d7bbb843b8e562073df787be8fbaeb42b14c6805e35a920
7
+ data.tar.gz: 2954925bfb324f7003d62f5dbdcc07663c4d52ff2ec2a69637854012b2920fdb005debcad795f19c2981520bc732c4941cab3be9a6e4cc620a436049f8a52691
data/README.md CHANGED
@@ -4,7 +4,7 @@
4
4
 
5
5
  Simple integration of jQuery tablesorter ([Mottie's fork]) into the asset pipeline.
6
6
 
7
- Current tablesorter version: 2.28.1 (11/27/2016), [documentation]
7
+ Current tablesorter version: 2.28.3 (12/16/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 = 23
4
- TINY = 2
4
+ TINY = 3
5
5
 
6
6
  VERSION = [MAJOR, MINOR, TINY].compact.join('.')
7
7
  end
@@ -56,7 +56,7 @@ $.tablesorter.addWidget({
56
56
  top: r.top - clickOffset[1],
57
57
  width: $th.outerWidth()
58
58
  })
59
- .appendTo('body')
59
+ .appendTo('head')
60
60
  .find('th, td').addClass(wo.reorder_helperClass);
61
61
  $bar = $('<div class="' + wo.reorder_helperBar + '" />')
62
62
  .css({
@@ -64,7 +64,7 @@ $.tablesorter.addWidget({
64
64
  top : c.$table.find('thead').offset().top,
65
65
  height : $th.closest('thead').outerHeight() + c.$table.find('tbody').height()
66
66
  })
67
- .appendTo('body');
67
+ .appendTo('head');
68
68
  positionBar(e);
69
69
  lastIndx = endIndex;
70
70
  },
@@ -179,4 +179,4 @@ $.tablesorter.addWidget({
179
179
  // add mouse coordinates
180
180
  $x = $('#main h1:last'); $(document).mousemove(function(e){ $x.html( e.pageX ); });
181
181
 
182
- })(jQuery);
182
+ })(jQuery);
@@ -4,7 +4,7 @@
4
4
  ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██▀▀ ▀▀▀██
5
5
  █████▀ ▀████▀ ██ ██ ▀████▀ ██ ██ ██ ██ ▀████▀ █████▀ ██ ██ █████▀
6
6
  */
7
- /*! tablesorter (FORK) - updated 12-08-2016 (v2.28.1)*/
7
+ /*! tablesorter (FORK) - updated 12-16-2016 (v2.28.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(jQuery) {
18
18
 
19
- /*! TableSorter (FORK) v2.28.1 *//*
19
+ /*! TableSorter (FORK) v2.28.3 *//*
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.28.1',
43
+ version : '2.28.3',
44
44
 
45
45
  parsers : [],
46
46
  widgets : [],
@@ -5374,7 +5374,7 @@
5374
5374
 
5375
5375
  })(jQuery, window);
5376
5376
 
5377
- /*! Widget: resizable - updated 6/28/2016 (v2.26.5) */
5377
+ /*! Widget: resizable - updated 12/15/2016 (v2.28.2) */
5378
5378
  /*jshint browser:true, jquery:true, unused:false */
5379
5379
  ;(function ($, window) {
5380
5380
  'use strict';
@@ -5397,7 +5397,7 @@
5397
5397
  '.' + ts.css.resizableHandle + ' { position: absolute; display: inline-block; width: 8px;' +
5398
5398
  'top: 1px; cursor: ew-resize; z-index: 3; user-select: none; -moz-user-select: none; }' +
5399
5399
  '</style>';
5400
- $(s).appendTo('body');
5400
+ $('head').append(s);
5401
5401
  });
5402
5402
 
5403
5403
  ts.resizable = {
@@ -1,4 +1,4 @@
1
- /*! TableSorter (FORK) v2.28.1 *//*
1
+ /*! TableSorter (FORK) v2.28.3 *//*
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.28.1',
25
+ version : '2.28.3',
26
26
 
27
27
  parsers : [],
28
28
  widgets : [],
@@ -4,7 +4,7 @@
4
4
  ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██▀▀ ▀▀▀██
5
5
  █████▀ ▀████▀ ██ ██ ▀████▀ ██ ██ ██ ██ ▀████▀ █████▀ ██ ██ █████▀
6
6
  */
7
- /*! tablesorter (FORK) - updated 12-08-2016 (v2.28.1)*/
7
+ /*! tablesorter (FORK) - updated 12-16-2016 (v2.28.3)*/
8
8
  /* Includes widgets ( storage,uitheme,columns,filter,stickyHeaders,resizable,saveSort ) */
9
9
  (function(factory) {
10
10
  if (typeof define === 'function' && define.amd) {
@@ -2579,7 +2579,7 @@
2579
2579
 
2580
2580
  })(jQuery, window);
2581
2581
 
2582
- /*! Widget: resizable - updated 6/28/2016 (v2.26.5) */
2582
+ /*! Widget: resizable - updated 12/15/2016 (v2.28.2) */
2583
2583
  /*jshint browser:true, jquery:true, unused:false */
2584
2584
  ;(function ($, window) {
2585
2585
  'use strict';
@@ -2602,7 +2602,7 @@
2602
2602
  '.' + ts.css.resizableHandle + ' { position: absolute; display: inline-block; width: 8px;' +
2603
2603
  'top: 1px; cursor: ew-resize; z-index: 3; user-select: none; -moz-user-select: none; }' +
2604
2604
  '</style>';
2605
- $(s).appendTo('body');
2605
+ $('head').append(s);
2606
2606
  });
2607
2607
 
2608
2608
  ts.resizable = {
@@ -1,4 +1,4 @@
1
- /* Widget: columnSelector (responsive table widget) - updated 9/28/2016 (v2.27.8) *//*
1
+ /* Widget: columnSelector (responsive table widget) - updated 12/15/2016 (v2.28.2) *//*
2
2
  * Requires tablesorter v2.8+ and jQuery 1.7+
3
3
  * by Justin Hallett & Rob Garrison
4
4
  */
@@ -113,7 +113,7 @@
113
113
  },
114
114
 
115
115
  setupSelector: function(c, wo) {
116
- var index, name, $header, priority, col, colId,
116
+ var index, name, $header, priority, col, colId, $el,
117
117
  colSel = c.selector,
118
118
  $container = colSel.$container,
119
119
  useStorage = wo.columnSelector_saveColumns && ts.storage,
@@ -149,10 +149,13 @@
149
149
  saved[colId] : (typeof wo.columnSelector_columns[colId] !== 'undefined' && wo.columnSelector_columns[colId] !== null) ?
150
150
  wo.columnSelector_columns[colId] : (state === 'true' || state !== 'false');
151
151
  colSel.$column[colId] = $(this);
152
-
153
- // set default col title
154
- name = $header.attr(wo.columnSelector_name) || $header.text();
155
152
  if ($container.length) {
153
+ // set default col title
154
+ name = $header.attr(wo.columnSelector_name) || $header.text().trim();
155
+ if (typeof wo.columnSelector_layoutCustomizer === "function") {
156
+ $el = $header.find('.' + ts.css.headerIn);
157
+ name = wo.columnSelector_layoutCustomizer( $el.length ? $el : $header, name, parseInt(colId, 10) );
158
+ }
156
159
  colSel.$wrapper[colId] = $(wo.columnSelector_layout.replace(/\{name\}/g, name)).appendTo($container);
157
160
  colSel.$checkbox[colId] = colSel.$wrapper[colId]
158
161
  // input may not be wrapped within the layout template
@@ -270,7 +273,7 @@
270
273
  var array = [],
271
274
  temp = ' col:nth-child(' + column + ')';
272
275
  array.push(prefix + temp + ',' + prefix + '_extra_table' + temp);
273
- temp = ' tr:not(.hasSpan) th:nth-child(' + column + ')';
276
+ temp = ' tr:not(.hasSpan) th[data-column="' + ( column - 1 ) + '"]';
274
277
  array.push(prefix + temp + ',' + prefix + '_extra_table' + temp);
275
278
  temp = ' tr:not(.hasSpan) td:nth-child(' + column + ')';
276
279
  array.push(prefix + temp + ',' + prefix + '_extra_table' + temp);
@@ -497,6 +500,9 @@
497
500
 
498
501
  // container layout
499
502
  columnSelector_layout : '<label><input type="checkbox">{name}</label>',
503
+ // layout customizer callback called for each column
504
+ // function($cell, name, column){ return name || $cell.html(); }
505
+ columnSelector_layoutCustomizer : null,
500
506
  // data attribute containing column name to use in the selector container
501
507
  columnSelector_name : 'data-selector-name',
502
508
 
@@ -1,4 +1,4 @@
1
- /*! Widget: resizable - updated 6/28/2016 (v2.26.5) */
1
+ /*! Widget: resizable - updated 12/15/2016 (v2.28.2) */
2
2
  /*jshint browser:true, jquery:true, unused:false */
3
3
  ;(function ($, window) {
4
4
  'use strict';
@@ -21,7 +21,7 @@
21
21
  '.' + ts.css.resizableHandle + ' { position: absolute; display: inline-block; width: 8px;' +
22
22
  'top: 1px; cursor: ew-resize; z-index: 3; user-select: none; -moz-user-select: none; }' +
23
23
  '</style>';
24
- $(s).appendTo('body');
24
+ $('head').append(s);
25
25
  });
26
26
 
27
27
  ts.resizable = {
@@ -139,7 +139,7 @@
139
139
  '.' + tscss.scrollerWrap + ' .' + tscss.scrollerFixedPanel +
140
140
  ' { position: absolute; top: 0; bottom: 0; z-index: 2; left: 0; right: 0; } ' +
141
141
  '</style>';
142
- $( style ).appendTo( 'body' );
142
+ $( 'head' ).append( style );
143
143
  });
144
144
 
145
145
  ts.scroller = {
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.23.2
4
+ version: 1.23.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-12-09 00:00:00.000000000 Z
12
+ date: 2016-12-19 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: railties