|
4 | 4 | ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██▀▀ ▀▀▀██
|
5 | 5 | █████▀ ▀████▀ ██ ██ ▀████▀ ██ ██ ██ ██ ▀████▀ █████▀ ██ ██ █████▀
|
6 | 6 | */
|
7 |
| -/*! tablesorter (FORK) - updated 06-02-2017 (v2.28.13)*/ |
| 7 | +/*! tablesorter (FORK) - updated 06-08-2017 (v2.28.14)*/ |
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.13 *//* |
| 19 | +/*! TableSorter (FORK) v2.28.14 *//* |
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.13', |
| 43 | + version : '2.28.14', |
44 | 44 |
|
45 | 45 | parsers : [],
|
46 | 46 | widgets : [],
|
|
2293 | 2293 | }
|
2294 | 2294 | }
|
2295 | 2295 | }
|
| 2296 | + ts.checkColumnCount($rows, matrix, matrixrow.length); |
2296 | 2297 | return matrixrow.length;
|
2297 | 2298 | },
|
2298 | 2299 |
|
| 2300 | + checkColumnCount : function($rows, matrix, columns) { |
| 2301 | + // this DOES NOT report any tbody column issues, except for the math and |
| 2302 | + // and column selector widgets |
| 2303 | + var i, len, |
| 2304 | + valid = true, |
| 2305 | + cells = []; |
| 2306 | + for ( i = 0; i < matrix.length; i++ ) { |
| 2307 | + // some matrix entries are undefined when testing the footer because |
| 2308 | + // it is using the rowIndex property |
| 2309 | + if ( matrix[i] ) { |
| 2310 | + len = matrix[i].length; |
| 2311 | + if ( matrix[i].length !== columns ) { |
| 2312 | + valid = false; |
| 2313 | + break; |
| 2314 | + } |
| 2315 | + } |
| 2316 | + } |
| 2317 | + if ( !valid ) { |
| 2318 | + $rows.each( function( indx, el ) { |
| 2319 | + var cell = el.parentElement.nodeName; |
| 2320 | + if ( cells.indexOf( cell ) ) { |
| 2321 | + cells.push( cell ); |
| 2322 | + } |
| 2323 | + }); |
| 2324 | + console.error( |
| 2325 | + 'Invalid or incorrect number of columns in the ' + |
| 2326 | + cells.join( ' or ' ) + '; expected ' + columns + |
| 2327 | + ', but found ' + len + ' columns' |
| 2328 | + ); |
| 2329 | + } |
| 2330 | + }, |
| 2331 | + |
2299 | 2332 | // automatically add a colgroup with col elements set to a percentage width
|
2300 | 2333 | fixColumnWidth : function( table ) {
|
2301 | 2334 | table = $( table )[ 0 ];
|
|
0 commit comments