jquery-tablesorter 1.20.4 → 1.20.5
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 +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 +9 -9
- data/vendor/assets/javascripts/jquery-tablesorter/jquery.tablesorter.combined.js +65 -46
- data/vendor/assets/javascripts/jquery-tablesorter/jquery.tablesorter.js +25 -24
- data/vendor/assets/javascripts/jquery-tablesorter/jquery.tablesorter.widgets.js +40 -22
- data/vendor/assets/javascripts/jquery-tablesorter/parsers/parser-huge-numbers.js +21 -0
- data/vendor/assets/javascripts/jquery-tablesorter/widgets/widget-editable.js +19 -7
- data/vendor/assets/javascripts/jquery-tablesorter/widgets/widget-filter.js +34 -16
- data/vendor/assets/javascripts/jquery-tablesorter/widgets/widget-grouping.js +9 -7
- data/vendor/assets/javascripts/jquery-tablesorter/widgets/widget-math.js +17 -22
- data/vendor/assets/javascripts/jquery-tablesorter/widgets/widget-pager.js +9 -9
- data/vendor/assets/javascripts/jquery-tablesorter/widgets/widget-print.js +6 -5
- data/vendor/assets/javascripts/jquery-tablesorter/widgets/widget-scroller.js +12 -8
- data/vendor/assets/javascripts/jquery-tablesorter/widgets/widget-stickyHeaders.js +3 -3
- data/vendor/assets/javascripts/jquery-tablesorter/widgets/widget-storage.js +2 -2
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 56d07c662f5223f551f2956eff94a49a4314b74e
|
4
|
+
data.tar.gz: 8594211f80de9b5f3614e5ea08453e1421cc138d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 338c37e02d4a4470c27523f53ee04361282b153e610c64755e7e68d67023c79264046c33c178a9f94bdb870ba7872f6a0a3ac6d1096a1ee30aab8d7c89ea1151
|
7
|
+
data.tar.gz: 4ffd4b1e5e77b3d067e05a0a7b577726023540ba25faaf4ea4aaa9215ef2559845105159c1ac2c79432bba9b12411ea850c4aee5adc00ba7ceb21014ce16c949
|
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.25.
|
7
|
+
Current tablesorter version: 2.25.5 (3/1/2016), [documentation]
|
8
8
|
|
9
9
|
Any issue associated with the js/css files, please report to [Mottie's fork].
|
10
10
|
|
@@ -167,7 +167,7 @@
|
|
167
167
|
c = table.config,
|
168
168
|
namespace = c.namespace + 'pager',
|
169
169
|
sz = parsePageSize( p, p.size, 'get' ); // don't allow dividing by zero
|
170
|
-
if (p.countChildRows) { t.
|
170
|
+
if (p.countChildRows) { t[ t.length ] = c.cssChildRow; }
|
171
171
|
p.totalPages = Math.ceil( p.totalRows / sz ); // needed for "pageSize" method
|
172
172
|
c.totalRows = p.totalRows;
|
173
173
|
parsePageNumber( table, p );
|
@@ -254,10 +254,10 @@
|
|
254
254
|
option_pages_start_page = (large_collection) ? skip_set_size : 1;
|
255
255
|
|
256
256
|
for ( i = option_pages_start_page; i <= pg; ) {
|
257
|
-
option_pages.
|
257
|
+
option_pages[ option_pages.length ] = i;
|
258
258
|
i = i + ( large_collection ? skip_set_size : 1 );
|
259
259
|
}
|
260
|
-
option_pages.
|
260
|
+
option_pages[ option_pages.length ] = pg;
|
261
261
|
if (large_collection) {
|
262
262
|
focus_option_pages = [];
|
263
263
|
// don't allow central focus size to be > 5 on either side of current page
|
@@ -269,7 +269,7 @@
|
|
269
269
|
if (end_page > pg) { end_page = pg; }
|
270
270
|
// construct an array to get a focus set around the current page
|
271
271
|
for (i = start_page; i <= end_page ; i++) {
|
272
|
-
focus_option_pages.
|
272
|
+
focus_option_pages[ focus_option_pages.length ] = i;
|
273
273
|
}
|
274
274
|
|
275
275
|
// keep unique values
|
@@ -349,7 +349,7 @@
|
|
349
349
|
} else {
|
350
350
|
rows[i].style.display = ( j >= s && j < e ) ? '' : 'none';
|
351
351
|
if (last !== j && j >= s && j < e) {
|
352
|
-
p.cacheIndex.
|
352
|
+
p.cacheIndex[ p.cacheIndex.length ] = i;
|
353
353
|
last = j;
|
354
354
|
}
|
355
355
|
// don't count child rows
|
@@ -565,7 +565,7 @@
|
|
565
565
|
sortCol = sortCol[1];
|
566
566
|
len = sortList.length;
|
567
567
|
for (indx = 0; indx < len; indx++) {
|
568
|
-
arry.
|
568
|
+
arry[ arry.length ] = sortCol + '[' + sortList[indx][0] + ']=' + sortList[indx][1];
|
569
569
|
}
|
570
570
|
// if the arry is empty, just add the col parameter... "&{sortList:col}" becomes "&col"
|
571
571
|
url = url.replace(/\{\s*sort(?:List)?\s*:\s*(\w*)\s*\}/g, arry.length ? arry.join('&') : sortCol );
|
@@ -576,7 +576,7 @@
|
|
576
576
|
len = filterList.length;
|
577
577
|
for (indx = 0; indx < len; indx++) {
|
578
578
|
if (filterList[indx]) {
|
579
|
-
arry.
|
579
|
+
arry[ arry.length ] = filterCol + '[' + indx + ']=' + encodeURIComponent( filterList[indx] );
|
580
580
|
}
|
581
581
|
}
|
582
582
|
// if the arry is empty, just add the fcol parameter... "&{filterList:fcol}" becomes "&fcol"
|
@@ -634,7 +634,7 @@
|
|
634
634
|
count++;
|
635
635
|
if (count > s && added <= e) {
|
636
636
|
added++;
|
637
|
-
p.cacheIndex.
|
637
|
+
p.cacheIndex[ p.cacheIndex.length ] = index;
|
638
638
|
$tb.append(rows[index]);
|
639
639
|
}
|
640
640
|
}
|
@@ -695,7 +695,7 @@
|
|
695
695
|
n = table.config.cache[0].normalized;
|
696
696
|
p.totalRows = n.length;
|
697
697
|
for (i = 0; i < p.totalRows; i++) {
|
698
|
-
rows.
|
698
|
+
rows[ rows.length ] = n[i][c.columns].$row;
|
699
699
|
}
|
700
700
|
c.rowsCopy = rows;
|
701
701
|
moveToPage(table, p, true);
|
@@ -4,7 +4,7 @@
|
|
4
4
|
██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██▀▀ ▀▀▀██
|
5
5
|
█████▀ ▀████▀ ██ ██ ▀████▀ ██ ██ ██ ██ ▀████▀ █████▀ ██ ██ █████▀
|
6
6
|
*/
|
7
|
-
/*! tablesorter (FORK) - updated
|
7
|
+
/*! tablesorter (FORK) - updated 03-01-2016 (v2.25.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($) {
|
18
18
|
|
19
|
-
/*! TableSorter (FORK) v2.25.
|
19
|
+
/*! TableSorter (FORK) v2.25.5 *//*
|
20
20
|
* Client-side table sorting with ease!
|
21
21
|
* @requires jQuery v1.2.6+
|
22
22
|
*
|
@@ -39,7 +39,7 @@
|
|
39
39
|
'use strict';
|
40
40
|
var ts = $.tablesorter = {
|
41
41
|
|
42
|
-
version : '2.25.
|
42
|
+
version : '2.25.5',
|
43
43
|
|
44
44
|
parsers : [],
|
45
45
|
widgets : [],
|
@@ -751,7 +751,7 @@
|
|
751
751
|
}
|
752
752
|
}
|
753
753
|
if ( add ) {
|
754
|
-
ts.parsers.
|
754
|
+
ts.parsers[ ts.parsers.length ] = parser;
|
755
755
|
}
|
756
756
|
},
|
757
757
|
|
@@ -971,7 +971,7 @@
|
|
971
971
|
}
|
972
972
|
// ensure rowData is always in the same location (after the last column)
|
973
973
|
cols[ c.columns ] = rowData;
|
974
|
-
cache.normalized.
|
974
|
+
cache.normalized[ cache.normalized.length ] = cols;
|
975
975
|
}
|
976
976
|
cache.colMax = colMax;
|
977
977
|
// total up rows, not including child rows
|
@@ -1040,9 +1040,9 @@
|
|
1040
1040
|
});
|
1041
1041
|
}
|
1042
1042
|
if ( result !== false ) {
|
1043
|
-
data.parsed.
|
1044
|
-
data.raw.
|
1045
|
-
data.$cell.
|
1043
|
+
data.parsed[ data.parsed.length ] = parsed;
|
1044
|
+
data.raw[ data.raw.length ] = raw;
|
1045
|
+
data.$cell[ data.$cell.length ] = $cell;
|
1046
1046
|
}
|
1047
1047
|
}
|
1048
1048
|
}
|
@@ -1231,7 +1231,7 @@
|
|
1231
1231
|
}
|
1232
1232
|
primary = indx === 0 ? dir : primary;
|
1233
1233
|
group = [ col, parseInt( dir, 10 ) || 0 ];
|
1234
|
-
c.sortList.
|
1234
|
+
c.sortList[ c.sortList.length ] = group;
|
1235
1235
|
dir = $.inArray( group[ 1 ], order ); // fixes issue #167
|
1236
1236
|
c.sortVars[ col ].count = dir >= 0 ? dir : group[ 1 ] % ( c.sortReset ? 3 : 2 );
|
1237
1237
|
}
|
@@ -1330,7 +1330,7 @@
|
|
1330
1330
|
},
|
1331
1331
|
|
1332
1332
|
addRows : function( c, $row, resort, callback ) {
|
1333
|
-
var txt, val, tbodyIndex, rowIndex, rows, cellIndex, len,
|
1333
|
+
var txt, val, tbodyIndex, rowIndex, rows, cellIndex, len, order,
|
1334
1334
|
cacheIndex, rowData, cells, cell, span,
|
1335
1335
|
// allow passing a row string if only one non-info tbody exists in the table
|
1336
1336
|
valid = typeof $row === 'string' && c.$tbodies.length === 1 && /<tr/.test( $row || '' ),
|
@@ -1365,12 +1365,13 @@
|
|
1365
1365
|
for ( rowIndex = 0; rowIndex < rows; rowIndex++ ) {
|
1366
1366
|
cacheIndex = 0;
|
1367
1367
|
len = $row[ rowIndex ].cells.length;
|
1368
|
+
order = c.cache[ tbodyIndex ].normalized.length;
|
1368
1369
|
cells = [];
|
1369
1370
|
rowData = {
|
1370
1371
|
child : [],
|
1371
1372
|
raw : [],
|
1372
1373
|
$row : $row.eq( rowIndex ),
|
1373
|
-
order :
|
1374
|
+
order : order
|
1374
1375
|
};
|
1375
1376
|
// add each cell
|
1376
1377
|
for ( cellIndex = 0; cellIndex < len; cellIndex++ ) {
|
@@ -1393,7 +1394,7 @@
|
|
1393
1394
|
// add the row data to the end
|
1394
1395
|
cells[ c.columns ] = rowData;
|
1395
1396
|
// update cache
|
1396
|
-
c.cache[ tbodyIndex ].normalized
|
1397
|
+
c.cache[ tbodyIndex ].normalized[ order ] = cells;
|
1397
1398
|
}
|
1398
1399
|
// resort using current settings
|
1399
1400
|
ts.checkResort( c, resort, callback );
|
@@ -1435,7 +1436,7 @@
|
|
1435
1436
|
parsed = cache[ tbodyIndex ].normalized;
|
1436
1437
|
totalRows = parsed.length;
|
1437
1438
|
for ( rowIndex = 0; rowIndex < totalRows; rowIndex++ ) {
|
1438
|
-
rows.
|
1439
|
+
rows[rows.length] = parsed[ rowIndex ][ c.columns ].$row;
|
1439
1440
|
// removeRows used by the pager plugin; don't render if using ajax - fixes #411
|
1440
1441
|
if ( !c.appender || ( c.pager && ( !c.pager.removeRows || !wo.pager_removeRows ) && !c.pager.ajax ) ) {
|
1441
1442
|
$curTbody.append( parsed[ rowIndex ][ c.columns ].$row );
|
@@ -1517,18 +1518,18 @@
|
|
1517
1518
|
arry = c.sortForce;
|
1518
1519
|
for ( indx = 0; indx < arry.length; indx++ ) {
|
1519
1520
|
if ( arry[ indx ][ 0 ] !== col ) {
|
1520
|
-
c.sortList.
|
1521
|
+
c.sortList[ c.sortList.length ] = arry[ indx ];
|
1521
1522
|
}
|
1522
1523
|
}
|
1523
1524
|
}
|
1524
1525
|
// add column to sort list
|
1525
1526
|
dir = order[ c.sortVars[ col ].count ];
|
1526
1527
|
if ( dir < 2 ) {
|
1527
|
-
c.sortList.
|
1528
|
+
c.sortList[ c.sortList.length ] = [ col, dir ];
|
1528
1529
|
// add other columns if header spans across multiple
|
1529
1530
|
if ( cell.colSpan > 1 ) {
|
1530
1531
|
for ( indx = 1; indx < cell.colSpan; indx++ ) {
|
1531
|
-
c.sortList.
|
1532
|
+
c.sortList[ c.sortList.length ] = [ col + indx, dir ];
|
1532
1533
|
// update count on columns in colSpan
|
1533
1534
|
c.sortVars[ col + indx ].count = $.inArray( dir, order );
|
1534
1535
|
}
|
@@ -1557,11 +1558,11 @@
|
|
1557
1558
|
// add column to sort list array
|
1558
1559
|
dir = order[ c.sortVars[ col ].count ];
|
1559
1560
|
if ( dir < 2 ) {
|
1560
|
-
c.sortList.
|
1561
|
+
c.sortList[ c.sortList.length ] = [ col, dir ];
|
1561
1562
|
// add other columns if header spans across multiple
|
1562
1563
|
if ( cell.colSpan > 1 ) {
|
1563
1564
|
for ( indx = 1; indx < cell.colSpan; indx++ ) {
|
1564
|
-
c.sortList.
|
1565
|
+
c.sortList[ c.sortList.length ] = [ col + indx, dir ];
|
1565
1566
|
// update count on columns in colSpan
|
1566
1567
|
c.sortVars[ col + indx ].count = $.inArray( dir, order );
|
1567
1568
|
}
|
@@ -1598,7 +1599,7 @@
|
|
1598
1599
|
break;
|
1599
1600
|
}
|
1600
1601
|
}
|
1601
|
-
c.sortList.
|
1602
|
+
c.sortList[ c.sortList.length ] = [ arry[ indx ][ 0 ], dir ];
|
1602
1603
|
}
|
1603
1604
|
}
|
1604
1605
|
}
|
@@ -1865,7 +1866,7 @@
|
|
1865
1866
|
███████▀ ██ █████▀ ▀████▀ ██████ ██ █████▀
|
1866
1867
|
*/
|
1867
1868
|
addWidget : function( widget ) {
|
1868
|
-
ts.widgets.
|
1869
|
+
ts.widgets[ ts.widgets.length ] = widget;
|
1869
1870
|
},
|
1870
1871
|
|
1871
1872
|
hasWidget : function( $table, name ) {
|
@@ -1913,7 +1914,7 @@
|
|
1913
1914
|
len = widgets.length;
|
1914
1915
|
for ( indx = 0; indx < len; indx++ ) {
|
1915
1916
|
if ( widgets[ indx ].match( widgetClass ) ) {
|
1916
|
-
c.widgets.
|
1917
|
+
c.widgets[ c.widgets.length ] = widgets[ indx ].replace( widgetClass, '$1' );
|
1917
1918
|
}
|
1918
1919
|
}
|
1919
1920
|
}
|
@@ -1930,7 +1931,7 @@
|
|
1930
1931
|
applied = false;
|
1931
1932
|
// add widget name to option list so it gets reapplied after sorting, filtering, etc
|
1932
1933
|
if ( $.inArray( name, c.widgets ) < 0 ) {
|
1933
|
-
c.widgets.
|
1934
|
+
c.widgets[ c.widgets.length ] = name;
|
1934
1935
|
}
|
1935
1936
|
if ( c.debug ) { time = new Date(); }
|
1936
1937
|
|
@@ -2040,7 +2041,7 @@
|
|
2040
2041
|
for ( indx = 0; indx < len; indx++ ) {
|
2041
2042
|
widget = ts.widgets[ indx ];
|
2042
2043
|
if ( widget && widget.id ) {
|
2043
|
-
name.
|
2044
|
+
name[ name.length ] = widget.id;
|
2044
2045
|
}
|
2045
2046
|
}
|
2046
2047
|
} else {
|
@@ -2081,7 +2082,7 @@
|
|
2081
2082
|
for ( indx = 0; indx < len; indx++ ) {
|
2082
2083
|
widget = widgets[ indx ];
|
2083
2084
|
if ( widget && widget.id && ( doAll || $.inArray( widget.id, curWidgets ) < 0 ) ) {
|
2084
|
-
list.
|
2085
|
+
list[ list.length ] = widget.id;
|
2085
2086
|
}
|
2086
2087
|
}
|
2087
2088
|
ts.removeWidget( table, list.join( ',' ), true );
|
@@ -2468,7 +2469,7 @@
|
|
2468
2469
|
console = {};
|
2469
2470
|
console.log = console.warn = console.error = console.table = function() {
|
2470
2471
|
var arg = arguments.length > 1 ? arguments : arguments[0];
|
2471
|
-
ts.logs.
|
2472
|
+
ts.logs[ ts.logs.length ] = { date: Date.now(), log: arg };
|
2472
2473
|
};
|
2473
2474
|
}
|
2474
2475
|
|
@@ -2735,7 +2736,7 @@
|
|
2735
2736
|
|
2736
2737
|
})( jQuery );
|
2737
2738
|
|
2738
|
-
/*! Widget: storage - updated 3/
|
2739
|
+
/*! Widget: storage - updated 3/1/2016 (v2.25.5) */
|
2739
2740
|
/*global JSON:false */
|
2740
2741
|
;(function ($, window, document) {
|
2741
2742
|
'use strict';
|
@@ -2805,7 +2806,7 @@
|
|
2805
2806
|
}
|
2806
2807
|
}
|
2807
2808
|
// allow value to be an empty string too
|
2808
|
-
if (
|
2809
|
+
if (typeof value !== 'undefined' && window.JSON && JSON.hasOwnProperty('stringify')) {
|
2809
2810
|
// add unique identifiers = url pathname > table ID/index on page > data
|
2810
2811
|
if (!values[url]) {
|
2811
2812
|
values[url] = {};
|
@@ -3091,7 +3092,7 @@
|
|
3091
3092
|
|
3092
3093
|
})(jQuery);
|
3093
3094
|
|
3094
|
-
/*! Widget: filter - updated
|
3095
|
+
/*! Widget: filter - updated 3/1/2016 (v2.25.5) *//*
|
3095
3096
|
* Requires tablesorter v2.8+ and jQuery 1.7+
|
3096
3097
|
* by Rob Garrison
|
3097
3098
|
*/
|
@@ -3138,6 +3139,7 @@
|
|
3138
3139
|
filter_hideFilters : false, // collapse filter row when mouse leaves the area
|
3139
3140
|
filter_ignoreCase : true, // if true, make all searches case-insensitive
|
3140
3141
|
filter_liveSearch : true, // if true, search column content while the user types ( with a delay )
|
3142
|
+
filter_matchType : { 'input': 'exact', 'select': 'exact' }, // global query settings ('exact' or 'match'); overridden by "filter-match" or "filter-exact" class
|
3141
3143
|
filter_onlyAvail : 'filter-onlyAvail', // a header with a select dropdown & this class name will only show available ( visible ) options within the drop down
|
3142
3144
|
filter_placeholder : { search : '', select : '' }, // default placeholder text ( overridden by any header 'data-placeholder' setting )
|
3143
3145
|
filter_reset : null, // jQuery selector string of an element used to reset the filters
|
@@ -4064,7 +4066,7 @@
|
|
4064
4066
|
end = c.columns - 1;
|
4065
4067
|
}
|
4066
4068
|
for ( ; start <= end; start++ ) {
|
4067
|
-
columns.
|
4069
|
+
columns[ columns.length ] = start;
|
4068
4070
|
}
|
4069
4071
|
// remove processed range from val
|
4070
4072
|
val = val.replace( ranges[ indx ], '' );
|
@@ -4078,7 +4080,7 @@
|
|
4078
4080
|
if ( singles[ i ] !== '' ) {
|
4079
4081
|
indx = parseInt( singles[ i ], 10 );
|
4080
4082
|
if ( indx < c.columns ) {
|
4081
|
-
columns.
|
4083
|
+
columns[ columns.length ] = indx;
|
4082
4084
|
}
|
4083
4085
|
}
|
4084
4086
|
}
|
@@ -4086,7 +4088,7 @@
|
|
4086
4088
|
// return all columns
|
4087
4089
|
if ( !columns.length ) {
|
4088
4090
|
for ( indx = 0; indx < c.columns; indx++ ) {
|
4089
|
-
columns.
|
4091
|
+
columns[ columns.length ] = indx;
|
4090
4092
|
}
|
4091
4093
|
}
|
4092
4094
|
return columns;
|
@@ -4122,6 +4124,24 @@
|
|
4122
4124
|
}
|
4123
4125
|
return filterMatched;
|
4124
4126
|
},
|
4127
|
+
matchType: function( c, columnIndex ) {
|
4128
|
+
var isMatch,
|
4129
|
+
$el = c.$headerIndexed[ columnIndex ];
|
4130
|
+
// filter-exact > filter-match > filter_matchType for type
|
4131
|
+
if ( $el.hasClass( 'filter-exact' ) ) {
|
4132
|
+
isMatch = false;
|
4133
|
+
} else if ( $el.hasClass( 'filter-match' ) ) {
|
4134
|
+
isMatch = true;
|
4135
|
+
} else {
|
4136
|
+
// filter-select is not applied when filter_functions are used, so look for a select
|
4137
|
+
$el = c.$filters.eq( columnIndex ).find( '.' + tscss.filter );
|
4138
|
+
isMatch = $el.length ?
|
4139
|
+
c.widgetOptions.filter_matchType[ ( $el[ 0 ].nodeName || '' ).toLowerCase() ] === 'match' :
|
4140
|
+
// default to exact, if no inputs found
|
4141
|
+
false;
|
4142
|
+
}
|
4143
|
+
return isMatch;
|
4144
|
+
},
|
4125
4145
|
processRow: function( c, data, vars ) {
|
4126
4146
|
var result, filterMatched,
|
4127
4147
|
fxn, ffxn, txt,
|
@@ -4195,12 +4215,11 @@
|
|
4195
4215
|
// ignore if filter is empty or disabled
|
4196
4216
|
if ( data.filter ) {
|
4197
4217
|
data.cache = data.cacheArray[ columnIndex ];
|
4198
|
-
result = data.rawArray[ columnIndex ] || '';
|
4218
|
+
result = data.parsed[ columnIndex ] ? data.cache : data.rawArray[ columnIndex ] || '';
|
4199
4219
|
data.exact = c.sortLocaleCompare ? ts.replaceAccents( result ) : result; // issue #405
|
4200
4220
|
data.iExact = !tsfRegex.type.test( typeof data.exact ) && wo.filter_ignoreCase ?
|
4201
4221
|
data.exact.toLowerCase() : data.exact;
|
4202
|
-
|
4203
|
-
data.isMatch = c.$headerIndexed[ data.index ].hasClass( 'filter-match' );
|
4222
|
+
data.isMatch = tsf.matchType( c, columnIndex );
|
4204
4223
|
|
4205
4224
|
result = showRow; // if showRow is true, show that row
|
4206
4225
|
|
@@ -4395,7 +4414,7 @@
|
|
4395
4414
|
!( tsfRegex.isNeg1.test( val ) || tsfRegex.isNeg2.test( val ) ) &&
|
4396
4415
|
// if filtering using a select without a 'filter-match' class ( exact match ) - fixes #593
|
4397
4416
|
!( val !== '' && c.$filters && c.$filters.filter( '[data-column="' + indx + '"]' ).find( 'select' ).length &&
|
4398
|
-
!
|
4417
|
+
!tsf.matchType( c, indx ) );
|
4399
4418
|
}
|
4400
4419
|
}
|
4401
4420
|
notFiltered = $rows.not( '.' + wo.filter_filteredRow ).length;
|
@@ -4584,13 +4603,13 @@
|
|
4584
4603
|
// table cell to the parser format function
|
4585
4604
|
if ( txt.text ) {
|
4586
4605
|
txt.parsed = parsedTxt;
|
4587
|
-
parsed.
|
4606
|
+
parsed[ parsed.length ] = txt;
|
4588
4607
|
} else {
|
4589
|
-
parsed.
|
4608
|
+
parsed[ parsed.length ] = {
|
4590
4609
|
text : txt,
|
4591
4610
|
// check parser length - fixes #934
|
4592
4611
|
parsed : parsedTxt
|
4593
|
-
}
|
4612
|
+
};
|
4594
4613
|
}
|
4595
4614
|
}
|
4596
4615
|
// sort parsed select options
|
@@ -4615,7 +4634,7 @@
|
|
4615
4634
|
arry = [];
|
4616
4635
|
len = parsed.length;
|
4617
4636
|
for ( indx = 0; indx < len; indx++ ) {
|
4618
|
-
arry.
|
4637
|
+
arry[ arry.length ] = parsed[indx];
|
4619
4638
|
}
|
4620
4639
|
return arry;
|
4621
4640
|
}
|
@@ -4644,23 +4663,23 @@
|
|
4644
4663
|
if ( wo.filter_useParsedData ||
|
4645
4664
|
c.parsers[column].parsed ||
|
4646
4665
|
c.$headerIndexed[column].hasClass( 'filter-parsed' ) ) {
|
4647
|
-
arry.
|
4666
|
+
arry[ arry.length ] = '' + cache.normalized[ rowIndex ][ column ];
|
4648
4667
|
// child row parsed data
|
4649
4668
|
if ( wo.filter_childRows && wo.filter_childByColumn ) {
|
4650
4669
|
childLen = cache.normalized[ rowIndex ][ c.columns ].$row.length - 1;
|
4651
4670
|
for ( indx = 0; indx < childLen; indx++ ) {
|
4652
|
-
arry.
|
4671
|
+
arry[ arry.length ] = '' + cache.normalized[ rowIndex ][ c.columns ].child[ indx ][ column ];
|
4653
4672
|
}
|
4654
4673
|
}
|
4655
4674
|
} else {
|
4656
4675
|
// get raw cached data instead of content directly from the cells
|
4657
|
-
arry.
|
4676
|
+
arry[ arry.length ] = cache.normalized[ rowIndex ][ c.columns ].raw[ column ];
|
4658
4677
|
// child row unparsed data
|
4659
4678
|
if ( wo.filter_childRows && wo.filter_childByColumn ) {
|
4660
4679
|
childLen = cache.normalized[ rowIndex ][ c.columns ].$row.length;
|
4661
4680
|
for ( indx = 1; indx < childLen; indx++ ) {
|
4662
4681
|
child = cache.normalized[ rowIndex ][ c.columns ].$row.eq( indx ).children().eq( column );
|
4663
|
-
arry.
|
4682
|
+
arry[ arry.length ] = '' + ts.getElementText( c, child, column );
|
4664
4683
|
}
|
4665
4684
|
}
|
4666
4685
|
}
|
@@ -4880,7 +4899,7 @@
|
|
4880
4899
|
|
4881
4900
|
})( jQuery );
|
4882
4901
|
|
4883
|
-
/*! Widget: stickyHeaders - updated
|
4902
|
+
/*! Widget: stickyHeaders - updated 3/1/2016 (v2.25.5) *//*
|
4884
4903
|
* Requires tablesorter v2.8+ and jQuery 1.4.3+
|
4885
4904
|
* by Rob Garrison
|
4886
4905
|
*/
|
@@ -4925,12 +4944,12 @@
|
|
4925
4944
|
}
|
4926
4945
|
wo.resize_flag = false;
|
4927
4946
|
};
|
4928
|
-
checkSizes( false );
|
4929
4947
|
clearInterval(wo.resize_timer);
|
4930
4948
|
if (disable) {
|
4931
4949
|
wo.resize_flag = false;
|
4932
4950
|
return false;
|
4933
4951
|
}
|
4952
|
+
checkSizes( false );
|
4934
4953
|
wo.resize_timer = setInterval(function() {
|
4935
4954
|
if (wo.resize_flag) { return; }
|
4936
4955
|
checkSizes();
|
@@ -5163,7 +5182,7 @@
|
|
5163
5182
|
.add(wo.stickyHeaders_yScroll)
|
5164
5183
|
.add(wo.stickyHeaders_attachTo)
|
5165
5184
|
.unbind( ('scroll resize '.split(' ').join(namespace)).replace(/\s+/g, ' ') );
|
5166
|
-
ts.addHeaderResizeEvent(table,
|
5185
|
+
ts.addHeaderResizeEvent(table, true);
|
5167
5186
|
}
|
5168
5187
|
});
|
5169
5188
|
|