jquery-tablesorter 1.23.4 → 1.23.5
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/jquery.tablesorter.combined.js +8 -5
- data/vendor/assets/javascripts/jquery-tablesorter/jquery.tablesorter.js +2 -2
- data/vendor/assets/javascripts/jquery-tablesorter/jquery.tablesorter.widgets.js +6 -3
- data/vendor/assets/javascripts/jquery-tablesorter/widgets/widget-output.js +20 -4
- data/vendor/assets/javascripts/jquery-tablesorter/widgets/widget-resizable.js +5 -2
- data/vendor/assets/javascripts/jquery-tablesorter/widgets/widget-scroller.js +2 -1
- 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: 28c65fb16bc9a6660ee7f77bf87d4f2b96c94119
|
4
|
+
data.tar.gz: 213e89be2506a23e979a6bf03e2bfe245786249e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3b76b220679661afb1a9907d860698a21e33983adb1cdfc3b2bd838ccdf61553294c72d9f49dec3b25c45f540374558ab1fd1a0b86e3253fe59a3977f49745e5
|
7
|
+
data.tar.gz: 242dac185a6b197179368045a2c6098322fae10d1b57dd164e4beb94fca834bf2272823d71a0b966deb18dd2422c502cb7cc7e15690e41598203a9a037511f02
|
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.
|
7
|
+
Current tablesorter version: 2.28.5 (1/28/2017), [documentation]
|
8
8
|
|
9
9
|
Any issue associated with the js/css files, please report to [Mottie's fork].
|
10
10
|
|
@@ -4,7 +4,7 @@
|
|
4
4
|
██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██▀▀ ▀▀▀██
|
5
5
|
█████▀ ▀████▀ ██ ██ ▀████▀ ██ ██ ██ ██ ▀████▀ █████▀ ██ ██ █████▀
|
6
6
|
*/
|
7
|
-
/*! tablesorter (FORK) - updated 01-
|
7
|
+
/*! tablesorter (FORK) - updated 01-28-2017 (v2.28.5)*/
|
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.
|
19
|
+
/*! TableSorter (FORK) v2.28.5 *//*
|
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.
|
43
|
+
version : '2.28.5',
|
44
44
|
|
45
45
|
parsers : [],
|
46
46
|
widgets : [],
|
@@ -5374,7 +5374,7 @@
|
|
5374
5374
|
|
5375
5375
|
})(jQuery, window);
|
5376
5376
|
|
5377
|
-
/*! Widget: resizable - updated
|
5377
|
+
/*! Widget: resizable - updated 1/28/2017 (v2.28.5) */
|
5378
5378
|
/*jshint browser:true, jquery:true, unused:false */
|
5379
5379
|
;(function ($, window) {
|
5380
5380
|
'use strict';
|
@@ -5630,9 +5630,12 @@
|
|
5630
5630
|
|
5631
5631
|
// right click to reset columns to default widths
|
5632
5632
|
c.$table
|
5633
|
-
.bind( 'columnUpdate'
|
5633
|
+
.bind( 'columnUpdate pagerComplete resizableUpdate '.split( ' ' ).join( namespace + ' ' ), function() {
|
5634
5634
|
ts.resizable.setHandlePosition( c, wo );
|
5635
5635
|
})
|
5636
|
+
.bind( 'resizableReset' + namespace, function() {
|
5637
|
+
ts.resizableReset( c.table );
|
5638
|
+
})
|
5636
5639
|
.find( 'thead:first' )
|
5637
5640
|
.add( $( c.namespace + '_extra_table' ).find( 'thead:first' ) )
|
5638
5641
|
.bind( 'contextmenu' + namespace, function() {
|
@@ -1,4 +1,4 @@
|
|
1
|
-
/*! TableSorter (FORK) v2.28.
|
1
|
+
/*! TableSorter (FORK) v2.28.5 *//*
|
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.
|
25
|
+
version : '2.28.5',
|
26
26
|
|
27
27
|
parsers : [],
|
28
28
|
widgets : [],
|
@@ -4,7 +4,7 @@
|
|
4
4
|
██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██▀▀ ▀▀▀██
|
5
5
|
█████▀ ▀████▀ ██ ██ ▀████▀ ██ ██ ██ ██ ▀████▀ █████▀ ██ ██ █████▀
|
6
6
|
*/
|
7
|
-
/*! tablesorter (FORK) - updated 01-
|
7
|
+
/*! tablesorter (FORK) - updated 01-28-2017 (v2.28.5)*/
|
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
|
2582
|
+
/*! Widget: resizable - updated 1/28/2017 (v2.28.5) */
|
2583
2583
|
/*jshint browser:true, jquery:true, unused:false */
|
2584
2584
|
;(function ($, window) {
|
2585
2585
|
'use strict';
|
@@ -2835,9 +2835,12 @@
|
|
2835
2835
|
|
2836
2836
|
// right click to reset columns to default widths
|
2837
2837
|
c.$table
|
2838
|
-
.bind( 'columnUpdate'
|
2838
|
+
.bind( 'columnUpdate pagerComplete resizableUpdate '.split( ' ' ).join( namespace + ' ' ), function() {
|
2839
2839
|
ts.resizable.setHandlePosition( c, wo );
|
2840
2840
|
})
|
2841
|
+
.bind( 'resizableReset' + namespace, function() {
|
2842
|
+
ts.resizableReset( c.table );
|
2843
|
+
})
|
2841
2844
|
.find( 'thead:first' )
|
2842
2845
|
.add( $( c.namespace + '_extra_table' ).find( 'thead:first' ) )
|
2843
2846
|
.bind( 'contextmenu' + namespace, function() {
|
@@ -1,4 +1,4 @@
|
|
1
|
-
/*! Widget: output - updated 1/
|
1
|
+
/*! Widget: output - updated 1/28/2017 (v2.28.5) *//*
|
2
2
|
* Requires tablesorter v2.8+ and jQuery 1.7+
|
3
3
|
* Modified from:
|
4
4
|
* HTML Table to CSV: http://www.kunalbabre.com/projects/table2CSV.php (License unknown?)
|
@@ -15,6 +15,13 @@
|
|
15
15
|
output = ts.output = {
|
16
16
|
|
17
17
|
event : 'outputTable',
|
18
|
+
// Double click time is about 500ms; this value ignores double clicks
|
19
|
+
// and prevents multiple windows from opening - issue in Firefox
|
20
|
+
noDblClick : 600, // ms
|
21
|
+
lastEvent : 0,
|
22
|
+
// prevent overlapping multiple opens in case rendering of content in
|
23
|
+
// popup or download is longer than noDblClick time.
|
24
|
+
busy : false,
|
18
25
|
|
19
26
|
// wrap line breaks & tabs in quotes
|
20
27
|
regexQuote : /([\n\t\x09\x0d\x0a]|<[^<]+>)/, // test if cell needs wrapping quotes
|
@@ -34,9 +41,17 @@
|
|
34
41
|
.off(output.event)
|
35
42
|
.on(output.event, function( e ) {
|
36
43
|
e.stopPropagation();
|
37
|
-
//
|
38
|
-
|
39
|
-
|
44
|
+
// prevent multiple windows opening
|
45
|
+
if (
|
46
|
+
!output.busy &&
|
47
|
+
(e.timeStamp - output.lastEvent > output.noDblClick)
|
48
|
+
) {
|
49
|
+
output.lastEvent = e.timeStamp;
|
50
|
+
output.busy = true;
|
51
|
+
// explicitly use table.config.widgetOptions because we want
|
52
|
+
// the most up-to-date values; not the 'wo' from initialization
|
53
|
+
output.process(c, c.widgetOptions);
|
54
|
+
}
|
40
55
|
});
|
41
56
|
},
|
42
57
|
|
@@ -210,6 +225,7 @@
|
|
210
225
|
} else {
|
211
226
|
output.download(c, wo, mydata);
|
212
227
|
}
|
228
|
+
output.busy = false;
|
213
229
|
|
214
230
|
}, // end process
|
215
231
|
|
@@ -1,4 +1,4 @@
|
|
1
|
-
/*! Widget: resizable - updated
|
1
|
+
/*! Widget: resizable - updated 1/28/2017 (v2.28.5) */
|
2
2
|
/*jshint browser:true, jquery:true, unused:false */
|
3
3
|
;(function ($, window) {
|
4
4
|
'use strict';
|
@@ -254,9 +254,12 @@
|
|
254
254
|
|
255
255
|
// right click to reset columns to default widths
|
256
256
|
c.$table
|
257
|
-
.bind( 'columnUpdate'
|
257
|
+
.bind( 'columnUpdate pagerComplete resizableUpdate '.split( ' ' ).join( namespace + ' ' ), function() {
|
258
258
|
ts.resizable.setHandlePosition( c, wo );
|
259
259
|
})
|
260
|
+
.bind( 'resizableReset' + namespace, function() {
|
261
|
+
ts.resizableReset( c.table );
|
262
|
+
})
|
260
263
|
.find( 'thead:first' )
|
261
264
|
.add( $( c.namespace + '_extra_table' ).find( 'thead:first' ) )
|
262
265
|
.bind( 'contextmenu' + namespace, function() {
|
@@ -1,4 +1,4 @@
|
|
1
|
-
/*! Widget: scroller - updated
|
1
|
+
/*! Widget: scroller - updated 1/28/2017 (v2.28.5) *//*
|
2
2
|
Copyright (C) 2011 T. Connell & Associates, Inc.
|
3
3
|
|
4
4
|
Dual-licensed under the MIT and GPL licenses
|
@@ -469,6 +469,7 @@
|
|
469
469
|
// update resizable widget handles
|
470
470
|
setTimeout( function() {
|
471
471
|
c.$table.triggerHandler( 'resizableUpdate' );
|
472
|
+
c.$table.triggerHandler( 'scrollerComplete' );
|
472
473
|
}, 100 );
|
473
474
|
|
474
475
|
},
|
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.
|
4
|
+
version: 1.23.5
|
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: 2017-
|
12
|
+
date: 2017-02-10 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: railties
|