jquery-tablesorter 1.22.6 → 1.22.7

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: d4211cee46a8b2e91b6dd361b142750090fa50d7
4
- data.tar.gz: 058c8b7d5ba30eee2876e2a704e5f3a9558677ba
3
+ metadata.gz: 72b4297c205ba3ae141fbac63445a827c2dd024c
4
+ data.tar.gz: f5b788dd0c9ccb8392c0627bd3ae7bd087a97683
5
5
  SHA512:
6
- metadata.gz: ae56e4a242b95b3cb41dfc3d98ad15c04ef067628b33b47870759590c3aa013d31f5cdf8f30e8684eecdf2b8f48d4b72d45c25c2803d726404875e3e9616b287
7
- data.tar.gz: c736f92638d4397fd1b9be8b49a6fa7a6a5c213002b16bd5e5efcd1bdab806f8b8540b77fc6a9cb0ff4c58e55bcca141df3b96aebc4190bb17cc13a84982978c
6
+ metadata.gz: 56defee4f40de39f75b533610adfc3bbfa4956d3aabffd1ee279dd16b95e46e49dd8bf277157945d64bbf117bf73a6d57b604d67b3db2e0a0fbb86f9043c9dbe
7
+ data.tar.gz: c64357c1d185427864c29f7b8bb404c2f3ecfaad2796f518c7c7516b143c786fec4d49d52f4aeb7aa499c00f35b95c934320fd906e1a12834bc6349803514be6
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.27.7 (9/23/2016), [documentation]
7
+ Current tablesorter version: 2.27.8 (9/28/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 = 6
4
+ TINY = 7
5
5
 
6
6
  VERSION = [MAJOR, MINOR, TINY].compact.join('.')
7
7
  end
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * custom pager controls (beta) for Tablesorter - updated 9/1/2016 (v2.27.6)
2
+ * custom pager controls (beta) for Tablesorter - updated 9/28/2016 (v2.27.8)
3
3
  initialize custom pager script BEFORE initializing tablesorter/tablesorter pager
4
4
  custom pager looks like this:
5
5
  1 | 2 … 5 | 6 | 7 … 99 | 100
@@ -13,7 +13,7 @@
13
13
  /*global jQuery: false */
14
14
 
15
15
  ;(function($) {
16
- "use strict";
16
+ 'use strict';
17
17
 
18
18
  $.tablesorter = $.tablesorter || {};
19
19
 
@@ -34,9 +34,13 @@ $.tablesorter.customPagerControls = function(settings) {
34
34
  },
35
35
  options = $.extend({}, defaults, settings),
36
36
  $table = $(options.table),
37
- $pager = $(options.pager);
37
+ $pager = $(options.pager),
38
+ focusOnPager = false;
38
39
 
39
40
  $table
41
+ .on('filterStart', function() {
42
+ focusOnPager = false;
43
+ })
40
44
  .on('pagerInitialized pagerComplete', function (e, c) {
41
45
  var indx,
42
46
  p = c.pager ? c.pager : c, // using widget
@@ -83,11 +87,11 @@ $.tablesorter.customPagerControls = function(settings) {
83
87
  });
84
88
  }
85
89
  }
86
- $pager
87
- .find('.pagecount')
88
- .html(pages.html())
89
- .find('.' + options.currentClass)
90
- .focus();
90
+ $pager.find('.pagecount').html(pages.html());
91
+ if (focusOnPager) {
92
+ // don't focus on pager when using filter - fixes #1296
93
+ $pager.find('.' + options.currentClass).focus();
94
+ }
91
95
  });
92
96
 
93
97
  // set up pager controls
@@ -103,6 +107,7 @@ $.tablesorter.customPagerControls = function(settings) {
103
107
  })
104
108
  .end()
105
109
  .on('click', options.currentPage, function() {
110
+ focusOnPager = true;
106
111
  var $el = $(this);
107
112
  $el
108
113
  .addClass(options.currentClass)
@@ -118,11 +123,13 @@ $.tablesorter.customPagerControls = function(settings) {
118
123
  // ignore arrows inside form elements
119
124
  if (/input|select|textarea/i.test(events.target.nodeName) ||
120
125
  !(events.which > 32 && events.which < 41)) {
126
+ focusOnPager = false;
121
127
  return;
122
128
  }
123
129
  // only allow keyboard use if element inside of pager is focused
124
130
  if ($(document.activeElement).closest(options.pager).is($pager)) {
125
131
  events.preventDefault();
132
+ focusOnPager = true;
126
133
  var key = events.which,
127
134
  max = $table[0].config.totalRows,
128
135
  $el = $pager.find(options.currentPage).filter('.' + options.currentClass),
@@ -140,4 +147,5 @@ $.tablesorter.customPagerControls = function(settings) {
140
147
  });
141
148
  }
142
149
  };
143
- })(jQuery);
150
+
151
+ })(jQuery);
@@ -4,7 +4,7 @@
4
4
  ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██▀▀ ▀▀▀██
5
5
  █████▀ ▀████▀ ██ ██ ▀████▀ ██ ██ ██ ██ ▀████▀ █████▀ ██ ██ █████▀
6
6
  */
7
- /*! tablesorter (FORK) - updated 09-23-2016 (v2.27.7)*/
7
+ /*! tablesorter (FORK) - updated 09-28-2016 (v2.27.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(jQuery) {
18
18
 
19
- /*! TableSorter (FORK) v2.27.7 *//*
19
+ /*! TableSorter (FORK) v2.27.8 *//*
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.7',
43
+ version : '2.27.8',
44
44
 
45
45
  parsers : [],
46
46
  widgets : [],
@@ -92,7 +92,7 @@
92
92
  widgetClass : 'widget-{name}', // table class name template to match to include a widget
93
93
  widgets : [], // method to add widgets, e.g. widgets: ['zebra']
94
94
  widgetOptions : {
95
- zebra : [ 'even', 'odd' ] // zebra widget alternating row class names
95
+ zebra : [ 'even', 'odd' ] // zebra widget alternating row class names
96
96
  },
97
97
 
98
98
  // *** callbacks
@@ -109,8 +109,8 @@
109
109
 
110
110
  cssChildRow : 'tablesorter-childRow', // class name indiciating that a row is to be attached to its parent
111
111
  cssInfoBlock : 'tablesorter-infoOnly', // don't sort tbody with this class name (only one class name allowed here!)
112
- cssNoSort : 'tablesorter-noSort', // class name added to element inside header; clicking on it won't cause a sort
113
- cssIgnoreRow : 'tablesorter-ignoreRow', // header row to ignore; cells within this row will not be added to c.$headers
112
+ cssNoSort : 'tablesorter-noSort', // class name added to element inside header; clicking on it won't cause a sort
113
+ cssIgnoreRow : 'tablesorter-ignoreRow',// header row to ignore; cells within this row will not be added to c.$headers
114
114
 
115
115
  cssIcon : 'tablesorter-icon', // if this class does not exist, the {icon} will not be added from the headerTemplate
116
116
  cssIconNone : '', // class name added to the icon when there is no column sort
@@ -124,7 +124,7 @@
124
124
 
125
125
  // *** selectors
126
126
  selectorHeaders : '> thead th, > thead td',
127
- selectorSort : 'th, td', // jQuery selector of content within selectorHeaders that is clickable to trigger a sort
127
+ selectorSort : 'th, td', // jQuery selector of content within selectorHeaders that is clickable to trigger a sort
128
128
  selectorRemove : '.remove-me',
129
129
 
130
130
  // *** advanced
@@ -1,4 +1,4 @@
1
- /*! TableSorter (FORK) v2.27.7 *//*
1
+ /*! TableSorter (FORK) v2.27.8 *//*
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.7',
25
+ version : '2.27.8',
26
26
 
27
27
  parsers : [],
28
28
  widgets : [],
@@ -74,7 +74,7 @@
74
74
  widgetClass : 'widget-{name}', // table class name template to match to include a widget
75
75
  widgets : [], // method to add widgets, e.g. widgets: ['zebra']
76
76
  widgetOptions : {
77
- zebra : [ 'even', 'odd' ] // zebra widget alternating row class names
77
+ zebra : [ 'even', 'odd' ] // zebra widget alternating row class names
78
78
  },
79
79
 
80
80
  // *** callbacks
@@ -91,8 +91,8 @@
91
91
 
92
92
  cssChildRow : 'tablesorter-childRow', // class name indiciating that a row is to be attached to its parent
93
93
  cssInfoBlock : 'tablesorter-infoOnly', // don't sort tbody with this class name (only one class name allowed here!)
94
- cssNoSort : 'tablesorter-noSort', // class name added to element inside header; clicking on it won't cause a sort
95
- cssIgnoreRow : 'tablesorter-ignoreRow', // header row to ignore; cells within this row will not be added to c.$headers
94
+ cssNoSort : 'tablesorter-noSort', // class name added to element inside header; clicking on it won't cause a sort
95
+ cssIgnoreRow : 'tablesorter-ignoreRow',// header row to ignore; cells within this row will not be added to c.$headers
96
96
 
97
97
  cssIcon : 'tablesorter-icon', // if this class does not exist, the {icon} will not be added from the headerTemplate
98
98
  cssIconNone : '', // class name added to the icon when there is no column sort
@@ -106,7 +106,7 @@
106
106
 
107
107
  // *** selectors
108
108
  selectorHeaders : '> thead th, > thead td',
109
- selectorSort : 'th, td', // jQuery selector of content within selectorHeaders that is clickable to trigger a sort
109
+ selectorSort : 'th, td', // jQuery selector of content within selectorHeaders that is clickable to trigger a sort
110
110
  selectorRemove : '.remove-me',
111
111
 
112
112
  // *** advanced
@@ -4,7 +4,7 @@
4
4
  ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██▀▀ ▀▀▀██
5
5
  █████▀ ▀████▀ ██ ██ ▀████▀ ██ ██ ██ ██ ▀████▀ █████▀ ██ ██ █████▀
6
6
  */
7
- /*! tablesorter (FORK) - updated 09-23-2016 (v2.27.7)*/
7
+ /*! tablesorter (FORK) - updated 09-28-2016 (v2.27.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: columnSelector (responsive table widget) - updated 7/31/2016 (v2.27.1) *//*
1
+ /* Widget: columnSelector (responsive table widget) - updated 9/28/2016 (v2.27.8) *//*
2
2
  * Requires tablesorter v2.8+ and jQuery 1.7+
3
3
  * by Justin Hallett & Rob Garrison
4
4
  */
@@ -208,7 +208,9 @@
208
208
  tsColSel.updateBreakpoints(c, wo);
209
209
  c.$table
210
210
  .off('updateAll' + namespace)
211
- .on('updateAll' + namespace, function(){
211
+ .on('updateAll' + namespace, function() {
212
+ tsColSel.setupSelector(c, wo);
213
+ tsColSel.setupBreakpoints(c, wo);
212
214
  tsColSel.updateBreakpoints(c, wo);
213
215
  tsColSel.updateCols(c, wo);
214
216
  });
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.6
4
+ version: 1.22.7
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-09-28 00:00:00.000000000 Z
12
+ date: 2016-09-29 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: railties