jquery-tablesorter 1.25.5 → 1.26.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/MIT-LICENSE +1 -1
- data/README.md +1 -1
- data/lib/jquery-tablesorter/version.rb +2 -2
- data/vendor/assets/javascripts/jquery-tablesorter/addons/pager/jquery.tablesorter.pager.js +2 -2
- data/vendor/assets/javascripts/jquery-tablesorter/jquery.tablesorter.combined.js +5 -16
- data/vendor/assets/javascripts/jquery-tablesorter/jquery.tablesorter.js +2 -2
- data/vendor/assets/javascripts/jquery-tablesorter/jquery.tablesorter.widgets.js +3 -14
- data/vendor/assets/javascripts/jquery-tablesorter/widgets/widget-editable.js +18 -13
- data/vendor/assets/javascripts/jquery-tablesorter/widgets/widget-pager.js +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f99874ff343b38a13e5ac0be4fd890e6b85adf676de40a620406a49fa38f4cd4
|
4
|
+
data.tar.gz: d5de1937947ff8257c06370d173062291eb40e600f9a76f82f3e83dc5d6466ec
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 787673dd09f9c8233b8804e1c639a50c8e1f3da88a7c6bbbc7b90396d86bacf6c5cf44540d9ebb41a9d31acbfb7ae520617f48a63cb241ca8ca2a17e5c047d6a
|
7
|
+
data.tar.gz: 5c5e43a2a5592ad422149ed180aa04a243f25ea77063adc1eddb43571a969107cada4af9127b863702514857ebac9496b37548a3e73b86f70fd3554cdc64190d
|
data/MIT-LICENSE
CHANGED
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.
|
7
|
+
Current tablesorter version: 2.31.0 (2018-08-27) [documentation]
|
8
8
|
|
9
9
|
Any issue associated with the js/css files, please report to [Mottie's fork].
|
10
10
|
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/*!
|
2
2
|
* tablesorter (FORK) pager plugin
|
3
|
-
* updated 2018-
|
3
|
+
* updated 2018-08-27 (v2.31.0)
|
4
4
|
*/
|
5
5
|
/*jshint browser:true, jquery:true, unused:false */
|
6
6
|
;(function($) {
|
@@ -52,7 +52,7 @@
|
|
52
52
|
// ],
|
53
53
|
// [ "header1", "header2", ... "headerN" ] // optional
|
54
54
|
// ]
|
55
|
-
ajaxProcessing: function(
|
55
|
+
ajaxProcessing: function(data) { return data; },
|
56
56
|
|
57
57
|
// output default: '{page}/{totalPages}'
|
58
58
|
// possible variables: {size}, {page}, {totalPages}, {filteredPages}, {startRow},
|
@@ -4,19 +4,10 @@
|
|
4
4
|
██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██▀▀ ▀▀▀██
|
5
5
|
█████▀ ▀████▀ ██ ██ ▀████▀ ██ ██ ██ ██ ▀████▀ █████▀ ██ ██ █████▀
|
6
6
|
*/
|
7
|
-
/*! tablesorter (FORK) - updated 2018-
|
7
|
+
/*! tablesorter (FORK) - updated 2018-08-27 (v2.31.0)*/
|
8
8
|
/* Includes widgets ( storage,uitheme,columns,filter,stickyHeaders,resizable,saveSort ) */
|
9
|
-
(function(factory) {
|
10
|
-
|
11
|
-
define(['jquery'], factory);
|
12
|
-
} else if (typeof module === 'object' && typeof module.exports === 'object') {
|
13
|
-
module.exports = factory(require('jquery'));
|
14
|
-
} else {
|
15
|
-
factory(jQuery);
|
16
|
-
}
|
17
|
-
}(function(jQuery) {
|
18
|
-
|
19
|
-
/*! TableSorter (FORK) v2.30.7 *//*
|
9
|
+
(function(factory){if (typeof define === 'function' && define.amd){define(['jquery'], factory);} else if (typeof module === 'object' && typeof module.exports === 'object'){module.exports = factory(require('jquery'));} else {factory(jQuery);}}(function(jQuery) {
|
10
|
+
/*! TableSorter (FORK) v2.31.0 *//*
|
20
11
|
* Client-side table sorting with ease!
|
21
12
|
* @requires jQuery v1.2.6+
|
22
13
|
*
|
@@ -40,7 +31,7 @@
|
|
40
31
|
'use strict';
|
41
32
|
var ts = $.tablesorter = {
|
42
33
|
|
43
|
-
version : '2.
|
34
|
+
version : '2.31.0',
|
44
35
|
|
45
36
|
parsers : [],
|
46
37
|
widgets : [],
|
@@ -6101,6 +6092,4 @@
|
|
6101
6092
|
});
|
6102
6093
|
|
6103
6094
|
})(jQuery);
|
6104
|
-
|
6105
|
-
return jQuery.tablesorter;
|
6106
|
-
}));
|
6095
|
+
return jQuery.tablesorter;}));
|
@@ -1,4 +1,4 @@
|
|
1
|
-
/*! TableSorter (FORK) v2.
|
1
|
+
/*! TableSorter (FORK) v2.31.0 *//*
|
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.
|
25
|
+
version : '2.31.0',
|
26
26
|
|
27
27
|
parsers : [],
|
28
28
|
widgets : [],
|
@@ -4,18 +4,9 @@
|
|
4
4
|
██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██▀▀ ▀▀▀██
|
5
5
|
█████▀ ▀████▀ ██ ██ ▀████▀ ██ ██ ██ ██ ▀████▀ █████▀ ██ ██ █████▀
|
6
6
|
*/
|
7
|
-
/*! tablesorter (FORK) - updated 2018-
|
7
|
+
/*! tablesorter (FORK) - updated 2018-08-27 (v2.31.0)*/
|
8
8
|
/* Includes widgets ( storage,uitheme,columns,filter,stickyHeaders,resizable,saveSort ) */
|
9
|
-
(function(factory) {
|
10
|
-
if (typeof define === 'function' && define.amd) {
|
11
|
-
define(['jquery'], factory);
|
12
|
-
} else if (typeof module === 'object' && typeof module.exports === 'object') {
|
13
|
-
module.exports = factory(require('jquery'));
|
14
|
-
} else {
|
15
|
-
factory(jQuery);
|
16
|
-
}
|
17
|
-
}(function(jQuery) {
|
18
|
-
|
9
|
+
(function(factory){if (typeof define === 'function' && define.amd){define(['jquery'], factory);} else if (typeof module === 'object' && typeof module.exports === 'object'){module.exports = factory(require('jquery'));} else {factory(jQuery);}}(function(jQuery) {
|
19
10
|
/*! Widget: storage - updated 2018-03-18 (v2.30.0) */
|
20
11
|
/*global JSON:false */
|
21
12
|
;(function ($, window, document) {
|
@@ -3188,6 +3179,4 @@
|
|
3188
3179
|
});
|
3189
3180
|
|
3190
3181
|
})(jQuery);
|
3191
|
-
|
3192
|
-
return jQuery.tablesorter;
|
3193
|
-
}));
|
3182
|
+
return jQuery.tablesorter;}));
|
@@ -1,4 +1,4 @@
|
|
1
|
-
/*! Widget: editable - updated
|
1
|
+
/*! Widget: editable - updated 2018-08-27 (v2.31.0) *//*
|
2
2
|
* Requires tablesorter v2.8+ and jQuery 1.7+
|
3
3
|
* by Rob Garrison
|
4
4
|
*/
|
@@ -85,6 +85,16 @@
|
|
85
85
|
return cols;
|
86
86
|
},
|
87
87
|
|
88
|
+
trimContent: function( wo, $cell ) {
|
89
|
+
if ( wo.editable_trimContent ) {
|
90
|
+
var html = $cell.html();
|
91
|
+
if (html.trim() !== html) {
|
92
|
+
// Add to bypass Firefox issue - see #1570
|
93
|
+
$cell.html( html === '' ? ' ' : html );
|
94
|
+
}
|
95
|
+
}
|
96
|
+
},
|
97
|
+
|
88
98
|
update: function( c, wo ) {
|
89
99
|
var $t, $cells, cellIndex, cellLen, $editable, editableIndex, editableLen,
|
90
100
|
tmp = $( '<div>' ).wrapInner( wo.editable_wrapContent ).children().length || $.isFunction( wo.editable_wrapContent ),
|
@@ -104,6 +114,9 @@
|
|
104
114
|
$t = $cells.eq( cellIndex );
|
105
115
|
if ( tmp && $t.children( 'div, span' ).length === 0 ) {
|
106
116
|
$t.wrapInner( wo.editable_wrapContent );
|
117
|
+
if ($t.children().text().trim() === '') {
|
118
|
+
$t.children().html(' ');
|
119
|
+
}
|
107
120
|
}
|
108
121
|
$editable = $t.children( 'div, span' ).not( '.' + wo.editable_noEdit );
|
109
122
|
editableLen = $editable.length;
|
@@ -111,19 +124,11 @@
|
|
111
124
|
// make div/span children content editable
|
112
125
|
for ( editableIndex = 0; editableIndex < editableLen; editableIndex++ ) {
|
113
126
|
var $this = $editable.eq( editableIndex );
|
114
|
-
|
115
|
-
$this.html( function( i, txt ) {
|
116
|
-
return $.trim( txt );
|
117
|
-
});
|
118
|
-
}
|
127
|
+
tse.trimContent( wo, $this );
|
119
128
|
$this.prop( 'contenteditable', true );
|
120
129
|
}
|
121
130
|
} else {
|
122
|
-
|
123
|
-
$t.html( function( i, txt ) {
|
124
|
-
return $.trim( txt );
|
125
|
-
});
|
126
|
-
}
|
131
|
+
tse.trimContent( wo, $t );
|
127
132
|
$t.prop( 'contenteditable', true );
|
128
133
|
}
|
129
134
|
}
|
@@ -160,7 +165,7 @@
|
|
160
165
|
column = $this.closest( 'td' ).index(),
|
161
166
|
txt = $this.html();
|
162
167
|
if ( wo.editable_trimContent ) {
|
163
|
-
txt = $.trim( txt );
|
168
|
+
txt = $.trim( txt === '' ? ' ' : txt );
|
164
169
|
}
|
165
170
|
// prevent enter from adding into the content
|
166
171
|
$this
|
@@ -194,7 +199,7 @@
|
|
194
199
|
txt = $this.html(),
|
195
200
|
column = $this.closest( 'td' ).index();
|
196
201
|
if ( wo.editable_trimContent ) {
|
197
|
-
txt = $.trim( txt );
|
202
|
+
txt = $.trim( txt === '' ? ' ' : txt );
|
198
203
|
}
|
199
204
|
if ( e.which === 27 ) {
|
200
205
|
// user cancelled
|
@@ -1,4 +1,4 @@
|
|
1
|
-
/*! Widget: Pager - updated 2018-
|
1
|
+
/*! Widget: Pager - updated 2018-08-27 (v2.31.0) */
|
2
2
|
/* Requires tablesorter v2.8+ and jQuery 1.7+
|
3
3
|
* by Rob Garrison
|
4
4
|
*/
|
@@ -91,7 +91,7 @@
|
|
91
91
|
// ],
|
92
92
|
// [ "header1", "header2", ... "headerN" ] // optional
|
93
93
|
// ]
|
94
|
-
pager_ajaxProcessing: function(
|
94
|
+
pager_ajaxProcessing: function( data ) { return data; },
|
95
95
|
|
96
96
|
// css class names of pager arrows
|
97
97
|
pager_css: {
|
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.
|
4
|
+
version: 1.26.0
|
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: 2018-
|
12
|
+
date: 2018-09-03 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: railties
|