jquery-tablesorter 1.22.6 → 1.22.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/jquery-tablesorter/version.rb +1 -1
- data/vendor/assets/javascripts/jquery-tablesorter/beta-testing/pager-custom-controls.js +17 -9
- data/vendor/assets/javascripts/jquery-tablesorter/jquery.tablesorter.combined.js +7 -7
- data/vendor/assets/javascripts/jquery-tablesorter/jquery.tablesorter.js +6 -6
- data/vendor/assets/javascripts/jquery-tablesorter/jquery.tablesorter.widgets.js +1 -1
- data/vendor/assets/javascripts/jquery-tablesorter/widgets/widget-columnSelector.js +4 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 72b4297c205ba3ae141fbac63445a827c2dd024c
|
4
|
+
data.tar.gz: f5b788dd0c9ccb8392c0627bd3ae7bd087a97683
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
+
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,5 +1,5 @@
|
|
1
1
|
/*!
|
2
|
-
* custom pager controls (beta) for Tablesorter - updated 9/
|
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
|
-
|
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
|
-
|
88
|
-
|
89
|
-
.find('.' + options.currentClass)
|
90
|
-
|
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
|
-
|
150
|
+
|
151
|
+
})(jQuery);
|
@@ -4,7 +4,7 @@
|
|
4
4
|
██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██▀▀ ▀▀▀██
|
5
5
|
█████▀ ▀████▀ ██ ██ ▀████▀ ██ ██ ██ ██ ▀████▀ █████▀ ██ ██ █████▀
|
6
6
|
*/
|
7
|
-
/*! tablesorter (FORK) - updated 09-
|
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.
|
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.
|
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' ]
|
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',
|
113
|
-
cssIgnoreRow : 'tablesorter-ignoreRow'
|
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',
|
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.
|
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.
|
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' ]
|
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',
|
95
|
-
cssIgnoreRow : 'tablesorter-ignoreRow'
|
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',
|
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-
|
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
|
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.
|
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-
|
12
|
+
date: 2016-09-29 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: railties
|