jquery-tablesorter 1.18.0 → 1.18.1
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/addons/pager/jquery.tablesorter.pager.js +35 -33
- data/vendor/assets/javascripts/jquery-tablesorter/jquery.tablesorter.combined.js +3 -3
- data/vendor/assets/javascripts/jquery-tablesorter/jquery.tablesorter.js +2 -2
- data/vendor/assets/javascripts/jquery-tablesorter/jquery.tablesorter.widgets.js +1 -1
- data/vendor/assets/javascripts/jquery-tablesorter/widgets/widget-pager.js +35 -33
- 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: 4345dc6b65a0109332a377216626cf9dbc0fc3d8
|
4
|
+
data.tar.gz: 017a83402c042c26a78ac3fd08ec03b9d6523ad2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 88e0d936b1eb66d037f5b101f16823a66a83af852e5cb84ba3098d4d2eb74694885001d18f1511976afd11493adb8502f9bce312a46b4a954105a48a2bc8704c
|
7
|
+
data.tar.gz: 2532d0968b7aa11095ee68870b529401980ec5a7179ef267f6847e3a7c1b74f7c6b0a26b49ce12176a415ab224fd92806871a8bf8ccae6b552bfdc32aa7e543a
|
data/README.md
CHANGED
@@ -4,7 +4,7 @@
|
|
4
4
|
|
5
5
|
Simple integration of jquery-tablesorter into the asset pipeline.
|
6
6
|
|
7
|
-
Current tablesorter version: 2.23.
|
7
|
+
Current tablesorter version: 2.23.1 (8/19/2015), [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 8/
|
3
|
+
* updated 8/19/2015 (v2.23.1)
|
4
4
|
*/
|
5
5
|
/*jshint browser:true, jquery:true, unused:false */
|
6
6
|
;(function($) {
|
@@ -26,7 +26,7 @@
|
|
26
26
|
customAjaxUrl: function(table, url) { return url; },
|
27
27
|
|
28
28
|
// ajax error callback from $.tablesorter.showError function
|
29
|
-
// ajaxError: function( config, xhr, exception ){ return exception; };
|
29
|
+
// ajaxError: function( config, xhr, settings, exception ){ return exception; };
|
30
30
|
// returning false will abort the error message
|
31
31
|
ajaxError: null,
|
32
32
|
|
@@ -379,7 +379,7 @@
|
|
379
379
|
}
|
380
380
|
},
|
381
381
|
|
382
|
-
renderAjax = function(data, table, p, xhr, exception){
|
382
|
+
renderAjax = function(data, table, p, xhr, settings, exception){
|
383
383
|
// process data
|
384
384
|
if ( typeof p.ajaxProcessing === 'function' ) {
|
385
385
|
// ajaxProcessing result: [ total, rows, headers ]
|
@@ -395,9 +395,9 @@
|
|
395
395
|
|
396
396
|
if ( exception ) {
|
397
397
|
if (c.debug) {
|
398
|
-
console.error('Pager: >> Ajax Error', xhr, exception);
|
398
|
+
console.error('Pager: >> Ajax Error', xhr, settings, exception);
|
399
399
|
}
|
400
|
-
ts.showError( table, xhr, exception );
|
400
|
+
ts.showError( table, xhr, settings, exception );
|
401
401
|
c.$tbodies.eq(0).children('tr').detach();
|
402
402
|
p.totalRows = 0;
|
403
403
|
} else {
|
@@ -522,7 +522,7 @@
|
|
522
522
|
ts.isProcessing(table, true); // show loading icon
|
523
523
|
}
|
524
524
|
$doc.bind('ajaxError' + namespace, function(e, xhr, settings, exception) {
|
525
|
-
renderAjax(null, table, p, xhr, exception);
|
525
|
+
renderAjax(null, table, p, xhr, settings, exception);
|
526
526
|
$doc.unbind('ajaxError' + namespace);
|
527
527
|
});
|
528
528
|
|
@@ -1067,12 +1067,14 @@
|
|
1067
1067
|
}() });
|
1068
1068
|
|
1069
1069
|
// see #486
|
1070
|
-
ts.showError = function( table, xhr, exception ) {
|
1070
|
+
ts.showError = function( table, xhr, settings, exception ) {
|
1071
1071
|
var $row,
|
1072
1072
|
$table = $( table ),
|
1073
1073
|
c = $table[0].config,
|
1074
1074
|
wo = c && c.widgetOptions,
|
1075
|
-
errorRow = c.pager && c.pager.cssErrorRow ||
|
1075
|
+
errorRow = c.pager && c.pager.cssErrorRow ||
|
1076
|
+
wo && wo.pager_css && wo.pager_css.errorRow ||
|
1077
|
+
'tablesorter-errorRow',
|
1076
1078
|
typ = typeof xhr,
|
1077
1079
|
valid = true,
|
1078
1080
|
message = '',
|
@@ -1085,23 +1087,25 @@
|
|
1085
1087
|
return;
|
1086
1088
|
}
|
1087
1089
|
|
1088
|
-
|
1089
|
-
|
1090
|
-
|
1091
|
-
|
1092
|
-
|
1093
|
-
return removeRow();
|
1094
|
-
} else {
|
1095
|
-
message = valid;
|
1096
|
-
}
|
1097
|
-
} else if ( typeof wo.pager_ajaxError === 'function' ) {
|
1098
|
-
valid = wo.pager_ajaxError( c, xhr, exception );
|
1099
|
-
if ( valid === false ) {
|
1100
|
-
return removeRow();
|
1101
|
-
} else {
|
1102
|
-
message = valid;
|
1103
|
-
}
|
1090
|
+
// ajaxError callback for plugin or widget - see #992
|
1091
|
+
if ( typeof c.pager.ajaxError === 'function' ) {
|
1092
|
+
valid = c.pager.ajaxError( c, xhr, settings, exception );
|
1093
|
+
if ( valid === false ) {
|
1094
|
+
return removeRow();
|
1104
1095
|
} else {
|
1096
|
+
message = valid;
|
1097
|
+
}
|
1098
|
+
} else if ( typeof wo.pager_ajaxError === 'function' ) {
|
1099
|
+
valid = wo.pager_ajaxError( c, xhr, settings, exception );
|
1100
|
+
if ( valid === false ) {
|
1101
|
+
return removeRow();
|
1102
|
+
} else {
|
1103
|
+
message = valid;
|
1104
|
+
}
|
1105
|
+
}
|
1106
|
+
|
1107
|
+
if ( message === '' ) {
|
1108
|
+
if ( typ === 'object' ) {
|
1105
1109
|
message =
|
1106
1110
|
xhr.status === 0 ? 'Not connected, verify Network' :
|
1107
1111
|
xhr.status === 404 ? 'Requested page not found [404]' :
|
@@ -1110,18 +1114,16 @@
|
|
1110
1114
|
exception === 'timeout' ? 'Time out error' :
|
1111
1115
|
exception === 'abort' ? 'Ajax Request aborted' :
|
1112
1116
|
'Uncaught error: ' + xhr.statusText + ' [' + xhr.status + ']';
|
1117
|
+
} else if ( typ === 'string' ) {
|
1118
|
+
// keep backward compatibility (external usage just passes a message string)
|
1119
|
+
message = xhr;
|
1120
|
+
} else {
|
1121
|
+
// remove all error rows
|
1122
|
+
return removeRow();
|
1113
1123
|
}
|
1114
|
-
} else if ( typ !== 'undefined' ) {
|
1115
|
-
// keep backward compatibility (external usage just passes a message string)
|
1116
|
-
message = xhr;
|
1117
|
-
}
|
1118
|
-
|
1119
|
-
if ( message === '' ) {
|
1120
|
-
// remove all error rows
|
1121
|
-
return removeRow();
|
1122
1124
|
}
|
1123
1125
|
|
1124
|
-
// allow message to include
|
1126
|
+
// allow message to include entire row HTML!
|
1125
1127
|
$row = ( /tr\>/.test(message) ? $(message) : $('<tr><td colspan="' + c.columns + '">' + message + '</td></tr>') )
|
1126
1128
|
.click( function() {
|
1127
1129
|
$( this ).remove();
|
@@ -4,7 +4,7 @@
|
|
4
4
|
██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██▀▀ ▀▀▀▀██
|
5
5
|
█████▀ ▀████▀ ██ ██ ▀████▀ ██ ██ ██ ██ ▀████▀ █████▀ ██ ██ █████▀
|
6
6
|
*/
|
7
|
-
/*! tablesorter (FORK) - updated 08-
|
7
|
+
/*! tablesorter (FORK) - updated 08-19-2015 (v2.23.1)*/
|
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($) {
|
18
18
|
|
19
|
-
/*! TableSorter (FORK) v2.23.
|
19
|
+
/*! TableSorter (FORK) v2.23.1 *//*
|
20
20
|
* Client-side table sorting with ease!
|
21
21
|
* @requires jQuery v1.2.6+
|
22
22
|
*
|
@@ -44,7 +44,7 @@
|
|
44
44
|
|
45
45
|
var ts = this;
|
46
46
|
|
47
|
-
ts.version = '2.23.
|
47
|
+
ts.version = '2.23.1';
|
48
48
|
|
49
49
|
ts.parsers = [];
|
50
50
|
ts.widgets = [];
|
@@ -1,4 +1,4 @@
|
|
1
|
-
/*! TableSorter (FORK) v2.23.
|
1
|
+
/*! TableSorter (FORK) v2.23.1 *//*
|
2
2
|
* Client-side table sorting with ease!
|
3
3
|
* @requires jQuery v1.2.6+
|
4
4
|
*
|
@@ -26,7 +26,7 @@
|
|
26
26
|
|
27
27
|
var ts = this;
|
28
28
|
|
29
|
-
ts.version = '2.23.
|
29
|
+
ts.version = '2.23.1';
|
30
30
|
|
31
31
|
ts.parsers = [];
|
32
32
|
ts.widgets = [];
|
@@ -4,7 +4,7 @@
|
|
4
4
|
██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██▀▀ ▀▀▀▀██
|
5
5
|
█████▀ ▀████▀ ██ ██ ▀████▀ ██ ██ ██ ██ ▀████▀ █████▀ ██ ██ █████▀
|
6
6
|
*/
|
7
|
-
/*! tablesorter (FORK) - updated 08-
|
7
|
+
/*! tablesorter (FORK) - updated 08-19-2015 (v2.23.1)*/
|
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: Pager - updated 8/
|
1
|
+
/*! Widget: Pager - updated 8/19/2015 (v2.23.1) */
|
2
2
|
/* Requires tablesorter v2.8+ and jQuery 1.7+
|
3
3
|
* by Rob Garrison
|
4
4
|
*/
|
@@ -63,7 +63,7 @@
|
|
63
63
|
pager_customAjaxUrl: function(table, url) { return url; },
|
64
64
|
|
65
65
|
// ajax error callback from $.tablesorter.showError function
|
66
|
-
// pager_ajaxError: function( config, xhr, exception ){ return exception; };
|
66
|
+
// pager_ajaxError: function( config, xhr, settings, exception ){ return exception; };
|
67
67
|
// returning false will abort the error message
|
68
68
|
pager_ajaxError: null,
|
69
69
|
|
@@ -645,7 +645,7 @@
|
|
645
645
|
}
|
646
646
|
},
|
647
647
|
|
648
|
-
renderAjax: function(data, table, c, xhr, exception){
|
648
|
+
renderAjax: function(data, table, c, xhr, settings, exception) {
|
649
649
|
var p = c.pager,
|
650
650
|
wo = c.widgetOptions;
|
651
651
|
// process data
|
@@ -662,9 +662,9 @@
|
|
662
662
|
|
663
663
|
if ( exception ) {
|
664
664
|
if (c.debug) {
|
665
|
-
console.error('Pager: >> Ajax Error', xhr, exception);
|
665
|
+
console.error('Pager: >> Ajax Error', xhr, settings, exception);
|
666
666
|
}
|
667
|
-
ts.showError( table, xhr, exception );
|
667
|
+
ts.showError( table, xhr, settings, exception );
|
668
668
|
c.$tbodies.eq(0).children('tr').detach();
|
669
669
|
p.totalRows = 0;
|
670
670
|
} else {
|
@@ -782,7 +782,7 @@
|
|
782
782
|
ts.isProcessing(table, true); // show loading icon
|
783
783
|
}
|
784
784
|
$doc.on('ajaxError' + namespace, function(e, xhr, settings, exception) {
|
785
|
-
tsp.renderAjax(null, table, c, xhr, exception);
|
785
|
+
tsp.renderAjax(null, table, c, xhr, settings, exception);
|
786
786
|
$doc.off('ajaxError' + namespace);
|
787
787
|
});
|
788
788
|
counter = ++p.ajaxCounter;
|
@@ -1142,12 +1142,14 @@
|
|
1142
1142
|
};
|
1143
1143
|
|
1144
1144
|
// see #486
|
1145
|
-
ts.showError = function( table, xhr, exception ) {
|
1145
|
+
ts.showError = function( table, xhr, settings, exception ) {
|
1146
1146
|
var $row,
|
1147
1147
|
$table = $( table ),
|
1148
1148
|
c = $table[0].config,
|
1149
1149
|
wo = c && c.widgetOptions,
|
1150
|
-
errorRow = c.pager && c.pager.cssErrorRow ||
|
1150
|
+
errorRow = c.pager && c.pager.cssErrorRow ||
|
1151
|
+
wo && wo.pager_css && wo.pager_css.errorRow ||
|
1152
|
+
'tablesorter-errorRow',
|
1151
1153
|
typ = typeof xhr,
|
1152
1154
|
valid = true,
|
1153
1155
|
message = '',
|
@@ -1160,23 +1162,25 @@
|
|
1160
1162
|
return;
|
1161
1163
|
}
|
1162
1164
|
|
1163
|
-
|
1164
|
-
|
1165
|
-
|
1166
|
-
|
1167
|
-
|
1168
|
-
return removeRow();
|
1169
|
-
} else {
|
1170
|
-
message = valid;
|
1171
|
-
}
|
1172
|
-
} else if ( typeof wo.pager_ajaxError === 'function' ) {
|
1173
|
-
valid = wo.pager_ajaxError( c, xhr, exception );
|
1174
|
-
if ( valid === false ) {
|
1175
|
-
return removeRow();
|
1176
|
-
} else {
|
1177
|
-
message = valid;
|
1178
|
-
}
|
1165
|
+
// ajaxError callback for plugin or widget - see #992
|
1166
|
+
if ( typeof c.pager.ajaxError === 'function' ) {
|
1167
|
+
valid = c.pager.ajaxError( c, xhr, settings, exception );
|
1168
|
+
if ( valid === false ) {
|
1169
|
+
return removeRow();
|
1179
1170
|
} else {
|
1171
|
+
message = valid;
|
1172
|
+
}
|
1173
|
+
} else if ( typeof wo.pager_ajaxError === 'function' ) {
|
1174
|
+
valid = wo.pager_ajaxError( c, xhr, settings, exception );
|
1175
|
+
if ( valid === false ) {
|
1176
|
+
return removeRow();
|
1177
|
+
} else {
|
1178
|
+
message = valid;
|
1179
|
+
}
|
1180
|
+
}
|
1181
|
+
|
1182
|
+
if ( message === '' ) {
|
1183
|
+
if ( typ === 'object' ) {
|
1180
1184
|
message =
|
1181
1185
|
xhr.status === 0 ? 'Not connected, verify Network' :
|
1182
1186
|
xhr.status === 404 ? 'Requested page not found [404]' :
|
@@ -1185,18 +1189,16 @@
|
|
1185
1189
|
exception === 'timeout' ? 'Time out error' :
|
1186
1190
|
exception === 'abort' ? 'Ajax Request aborted' :
|
1187
1191
|
'Uncaught error: ' + xhr.statusText + ' [' + xhr.status + ']';
|
1192
|
+
} else if ( typ === 'string' ) {
|
1193
|
+
// keep backward compatibility (external usage just passes a message string)
|
1194
|
+
message = xhr;
|
1195
|
+
} else {
|
1196
|
+
// remove all error rows
|
1197
|
+
return removeRow();
|
1188
1198
|
}
|
1189
|
-
} else if ( typ !== 'undefined' ) {
|
1190
|
-
// keep backward compatibility (external usage just passes a message string)
|
1191
|
-
message = xhr;
|
1192
|
-
}
|
1193
|
-
|
1194
|
-
if ( message === '' ) {
|
1195
|
-
// remove all error rows
|
1196
|
-
return removeRow();
|
1197
1199
|
}
|
1198
1200
|
|
1199
|
-
// allow message to include
|
1201
|
+
// allow message to include entire row HTML!
|
1200
1202
|
$row = ( /tr\>/.test(message) ? $(message) : $('<tr><td colspan="' + c.columns + '">' + message + '</td></tr>') )
|
1201
1203
|
.click( function() {
|
1202
1204
|
$( this ).remove();
|
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.18.
|
4
|
+
version: 1.18.1
|
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: 2015-08-
|
12
|
+
date: 2015-08-20 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: railties
|