|
4 | 4 | ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██▀▀ ▀▀▀██
|
5 | 5 | █████▀ ▀████▀ ██ ██ ▀████▀ ██ ██ ██ ██ ▀████▀ █████▀ ██ ██ █████▀
|
6 | 6 | */
|
7 |
| -/*! tablesorter (FORK) - updated 06-08-2017 (v2.28.14)*/ |
| 7 | +/*! tablesorter (FORK) - updated 07-04-2017 (v2.28.15)*/ |
8 | 8 | /* Includes widgets ( storage,uitheme,columns,filter,stickyHeaders,resizable,saveSort ) */
|
9 | 9 | (function(factory) {
|
10 | 10 | if (typeof define === 'function' && define.amd) {
|
|
16 | 16 | }
|
17 | 17 | }(function(jQuery) {
|
18 | 18 |
|
19 |
| -/*! TableSorter (FORK) v2.28.14 *//* |
| 19 | +/*! TableSorter (FORK) v2.28.15 *//* |
20 | 20 | * Client-side table sorting with ease!
|
21 | 21 | * @requires jQuery v1.2.6+
|
22 | 22 | *
|
|
40 | 40 | 'use strict';
|
41 | 41 | var ts = $.tablesorter = {
|
42 | 42 |
|
43 |
| - version : '2.28.14', |
| 43 | + version : '2.28.15', |
44 | 44 |
|
45 | 45 | parsers : [],
|
46 | 46 | widgets : [],
|
|
2258 | 2258 | cells = $rows[ i ].cells;
|
2259 | 2259 | for ( j = 0; j < cells.length; j++ ) {
|
2260 | 2260 | cell = cells[ j ];
|
2261 |
| - rowIndex = cell.parentNode.rowIndex; |
| 2261 | + rowIndex = i; |
2262 | 2262 | rowSpan = cell.rowSpan || 1;
|
2263 | 2263 | colSpan = cell.colSpan || 1;
|
2264 | 2264 | if ( typeof matrix[ rowIndex ] === 'undefined' ) {
|
|
2317 | 2317 | if ( !valid ) {
|
2318 | 2318 | $rows.each( function( indx, el ) {
|
2319 | 2319 | var cell = el.parentElement.nodeName;
|
2320 |
| - if ( cells.indexOf( cell ) ) { |
| 2320 | + if ( cells.indexOf( cell ) < 0 ) { |
2321 | 2321 | cells.push( cell );
|
2322 | 2322 | }
|
2323 | 2323 | });
|
|
3274 | 3274 |
|
3275 | 3275 | })(jQuery);
|
3276 | 3276 |
|
3277 |
| -/*! Widget: filter - updated 5/24/2017 (v2.28.11) *//* |
| 3277 | +/*! Widget: filter - updated 7/4/2017 (v2.28.15) *//* |
3278 | 3278 | * Requires tablesorter v2.8+ and jQuery 1.7+
|
3279 | 3279 | * by Rob Garrison
|
3280 | 3280 | */
|
|
3345 | 3345 | var tbodyIndex, $tbody,
|
3346 | 3346 | $table = c.$table,
|
3347 | 3347 | $tbodies = c.$tbodies,
|
3348 |
| - events = 'addRows updateCell update updateRows updateComplete appendCache filterReset filterAndSortReset filterEnd search ' |
3349 |
| - .split( ' ' ).join( c.namespace + 'filter ' ); |
| 3348 | + events = ( |
| 3349 | + 'addRows updateCell update updateRows updateComplete appendCache filterReset ' + |
| 3350 | + 'filterAndSortReset filterFomatterUpdate filterEnd search stickyHeadersInit ' |
| 3351 | + ).split( ' ' ).join( c.namespace + 'filter ' ); |
3350 | 3352 | $table
|
3351 | 3353 | .removeClass( 'hasFilters' )
|
3352 | 3354 | // add filter namespace to all BUT search
|
|
3875 | 3877 | // so we have to work with it instead
|
3876 | 3878 | formatterUpdated: function( $cell, column ) {
|
3877 | 3879 | // prevent error if $cell is undefined - see #1056
|
3878 |
| - var wo = $cell && $cell.closest( 'table' )[0].config.widgetOptions; |
| 3880 | + var $table = $cell && $cell.closest( 'table' ); |
| 3881 | + var config = $table.length && $table[0].config, |
| 3882 | + wo = config && config.widgetOptions; |
3879 | 3883 | if ( wo && !wo.filter_initialized ) {
|
3880 | 3884 | // add updates by column since this function
|
3881 | 3885 | // may be called numerous times before initialization
|
|
0 commit comments