Skip to content

Commit

Permalink
v2.28.14
Browse files Browse the repository at this point in the history
  • Loading branch information
Mottie committed Jun 9, 2017
1 parent 8c6111d commit d398c91
Show file tree
Hide file tree
Showing 12 changed files with 130 additions and 40 deletions.
35 changes: 13 additions & 22 deletions README.md
Expand Up @@ -82,7 +82,7 @@ If you would like to contribute, please...
* Big thanks to [ThsSin-](https://github.com/TheSin-) for taking over for a while and also providing valuable feedback.
* Thanks to [prijutme4ty](https://github.com/prijutme4ty) for numerous contributions!
* Also extra thanks to [christhomas](https://github.com/christhomas) and [Lynesth](https://github.com/Lynesth) for help with code.
* And, of course thanks to everyone else that has contributed, and continues to contribute to this forked project!
* And, of course thanks to everyone else that has [contributed](https://github.com/Mottie/tablesorter/blob/master/AUTHORS), and continues to contribute through pull requests and open issues to this forked project!

[npm-url]: https://npmjs.org/package/tablesorter
[npm-image]: https://img.shields.io/npm/v/tablesorter.svg
Expand All @@ -104,6 +104,18 @@ If you would like to contribute, please...

View the [complete change log here](https://github.com/Mottie/tablesorter/wiki/Changes).

#### <a name="v2.28.14">Version 2.28.14</a> (6/8/2017)

* Core:
* Show console error for mismatched column count. See [issue #1415](https://github.com/Mottie/tablesorter/issues/1415).
* Pager:
* (addon) Ensure ajax is called after filter widget init. Fixes [issue #1389](https://github.com/Mottie/tablesorter/issues/1389).
* (addon) Fix height issues for certain browsers (border-spacing). See [pull #1418](https://github.com/Mottie/tablesorter/pull/1418); thanks [@DoctorWhite](https://github.com/DoctorWhite)
* (widget) Apply height adjustment code to pager widget.
* Use selectorRemove to remove error rows. Removes error rows with dynamically changed class names.
* Meta:
* Added [AUTHORS](https://github.com/Mottie/tablesorter/blob/master/AUTHORS) file.

#### <a name="v2.28.13">Version 2.28.13</a> (6/2/2017)

* Core:
Expand All @@ -127,24 +139,3 @@ View the [complete change log here](https://github.com/Mottie/tablesorter/wiki/C
* Fix linting issues.
* Update jQuery UI to v1.12.1.
* Update [filter selectmenu demo](https://mottie.github.io/tablesorter/docs/example-widget-filter-selectmenu.html).

#### <a name="v2.28.11">Version 2.28.11</a> (5/24/2017)

* Docs:
* Reword `sortReset` method description. See [issue #1404](https://github.com/Mottie/tablesorter/issues/1404).
* Columns:
* Initialize after pager widget.
* CssStickyHeaders:
* Fix captioned tables in Safari. See [issue #1405](https://github.com/Mottie/tablesorter/issues/1405); thanks [@TheSin-](https://github.com/TheSin-)!
* Fix in Edge browser.
* Filter:
* Attempt to fix [issue #1152](https://github.com/Mottie/tablesorter/issues/1152) (`liveSearch`).
* Second attempt at [issue #1152](https://github.com/Mottie/tablesorter/issues/1152).
* Trigger `liveSearch` on blur & cleanup.
* Pager (widget only):
* Allow ajax processing on init.
* Ensure ajax is called after filter widget initializes.
* Parsers:
* Update links to sugarjs/datejs demos.
* Meta:
* Update dependencies.
39 changes: 36 additions & 3 deletions dist/js/jquery.tablesorter.combined.js
@@ -1,4 +1,4 @@
/*! tablesorter (FORK) - updated 06-02-2017 (v2.28.13)*/
/*! tablesorter (FORK) - updated 06-08-2017 (v2.28.14)*/
/* Includes widgets ( storage,uitheme,columns,filter,stickyHeaders,resizable,saveSort ) */
(function(factory) {
if (typeof define === 'function' && define.amd) {
Expand All @@ -10,7 +10,7 @@
}
}(function(jQuery) {

/*! TableSorter (FORK) v2.28.13 *//*
/*! TableSorter (FORK) v2.28.14 *//*
* Client-side table sorting with ease!
* @requires jQuery v1.2.6+
*
Expand All @@ -34,7 +34,7 @@
'use strict';
var ts = $.tablesorter = {

version : '2.28.13',
version : '2.28.14',

parsers : [],
widgets : [],
Expand Down Expand Up @@ -2287,9 +2287,42 @@
}
}
}
ts.checkColumnCount($rows, matrix, matrixrow.length);
return matrixrow.length;
},

checkColumnCount : function($rows, matrix, columns) {
// this DOES NOT report any tbody column issues, except for the math and
// and column selector widgets
var i, len,
valid = true,
cells = [];
for ( i = 0; i < matrix.length; i++ ) {
// some matrix entries are undefined when testing the footer because
// it is using the rowIndex property
if ( matrix[i] ) {
len = matrix[i].length;
if ( matrix[i].length !== columns ) {
valid = false;
break;
}
}
}
if ( !valid ) {
$rows.each( function( indx, el ) {
var cell = el.parentElement.nodeName;
if ( cells.indexOf( cell ) ) {
cells.push( cell );
}
});
console.error(
'Invalid or incorrect number of columns in the ' +
cells.join( ' or ' ) + '; expected ' + columns +
', but found ' + len + ' columns'
);
}
},

// automatically add a colgroup with col elements set to a percentage width
fixColumnWidth : function( table ) {
table = $( table )[ 0 ];
Expand Down
4 changes: 2 additions & 2 deletions dist/js/jquery.tablesorter.combined.min.js

Large diffs are not rendered by default.

37 changes: 35 additions & 2 deletions dist/js/jquery.tablesorter.js
Expand Up @@ -8,7 +8,7 @@
}
}(function(jQuery) {

/*! TableSorter (FORK) v2.28.13 *//*
/*! TableSorter (FORK) v2.28.14 *//*
* Client-side table sorting with ease!
* @requires jQuery v1.2.6+
*
Expand All @@ -32,7 +32,7 @@
'use strict';
var ts = $.tablesorter = {

version : '2.28.13',
version : '2.28.14',

parsers : [],
widgets : [],
Expand Down Expand Up @@ -2285,9 +2285,42 @@
}
}
}
ts.checkColumnCount($rows, matrix, matrixrow.length);
return matrixrow.length;
},

checkColumnCount : function($rows, matrix, columns) {
// this DOES NOT report any tbody column issues, except for the math and
// and column selector widgets
var i, len,
valid = true,
cells = [];
for ( i = 0; i < matrix.length; i++ ) {
// some matrix entries are undefined when testing the footer because
// it is using the rowIndex property
if ( matrix[i] ) {
len = matrix[i].length;
if ( matrix[i].length !== columns ) {
valid = false;
break;
}
}
}
if ( !valid ) {
$rows.each( function( indx, el ) {
var cell = el.parentElement.nodeName;
if ( cells.indexOf( cell ) ) {
cells.push( cell );
}
});
console.error(
'Invalid or incorrect number of columns in the ' +
cells.join( ' or ' ) + '; expected ' + columns +
', but found ' + len + ' columns'
);
}
},

// automatically add a colgroup with col elements set to a percentage width
fixColumnWidth : function( table ) {
table = $( table )[ 0 ];
Expand Down
2 changes: 1 addition & 1 deletion dist/js/jquery.tablesorter.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/js/jquery.tablesorter.widgets.js
@@ -1,4 +1,4 @@
/*! tablesorter (FORK) - updated 06-02-2017 (v2.28.13)*/
/*! tablesorter (FORK) - updated 06-08-2017 (v2.28.14)*/
/* Includes widgets ( storage,uitheme,columns,filter,stickyHeaders,resizable,saveSort ) */
(function(factory) {
if (typeof define === 'function' && define.amd) {
Expand Down
2 changes: 1 addition & 1 deletion dist/js/jquery.tablesorter.widgets.min.js

Large diffs are not rendered by default.

39 changes: 36 additions & 3 deletions js/jquery.tablesorter.combined.js
Expand Up @@ -4,7 +4,7 @@
██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██▀▀ ▀▀▀██
█████▀ ▀████▀ ██ ██ ▀████▀ ██ ██ ██ ██ ▀████▀ █████▀ ██ ██ █████▀
*/
/*! tablesorter (FORK) - updated 06-02-2017 (v2.28.13)*/
/*! tablesorter (FORK) - updated 06-08-2017 (v2.28.14)*/
/* Includes widgets ( storage,uitheme,columns,filter,stickyHeaders,resizable,saveSort ) */
(function(factory) {
if (typeof define === 'function' && define.amd) {
Expand All @@ -16,7 +16,7 @@
}
}(function(jQuery) {

/*! TableSorter (FORK) v2.28.13 *//*
/*! TableSorter (FORK) v2.28.14 *//*
* Client-side table sorting with ease!
* @requires jQuery v1.2.6+
*
Expand All @@ -40,7 +40,7 @@
'use strict';
var ts = $.tablesorter = {

version : '2.28.13',
version : '2.28.14',

parsers : [],
widgets : [],
Expand Down Expand Up @@ -2293,9 +2293,42 @@
}
}
}
ts.checkColumnCount($rows, matrix, matrixrow.length);
return matrixrow.length;
},

checkColumnCount : function($rows, matrix, columns) {
// this DOES NOT report any tbody column issues, except for the math and
// and column selector widgets
var i, len,
valid = true,
cells = [];
for ( i = 0; i < matrix.length; i++ ) {
// some matrix entries are undefined when testing the footer because
// it is using the rowIndex property
if ( matrix[i] ) {
len = matrix[i].length;
if ( matrix[i].length !== columns ) {
valid = false;
break;
}
}
}
if ( !valid ) {
$rows.each( function( indx, el ) {
var cell = el.parentElement.nodeName;
if ( cells.indexOf( cell ) ) {
cells.push( cell );
}
});
console.error(
'Invalid or incorrect number of columns in the ' +
cells.join( ' or ' ) + '; expected ' + columns +
', but found ' + len + ' columns'
);
}
},

// automatically add a colgroup with col elements set to a percentage width
fixColumnWidth : function( table ) {
table = $( table )[ 0 ];
Expand Down
4 changes: 2 additions & 2 deletions js/jquery.tablesorter.js
@@ -1,4 +1,4 @@
/*! TableSorter (FORK) v2.28.13 *//*
/*! TableSorter (FORK) v2.28.14 *//*
* Client-side table sorting with ease!
* @requires jQuery v1.2.6+
*
Expand All @@ -22,7 +22,7 @@
'use strict';
var ts = $.tablesorter = {

version : '2.28.13',
version : '2.28.14',

parsers : [],
widgets : [],
Expand Down
2 changes: 1 addition & 1 deletion js/jquery.tablesorter.widgets.js
Expand Up @@ -4,7 +4,7 @@
██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██▀▀ ▀▀▀██
█████▀ ▀████▀ ██ ██ ▀████▀ ██ ██ ██ ██ ▀████▀ █████▀ ██ ██ █████▀
*/
/*! tablesorter (FORK) - updated 06-02-2017 (v2.28.13)*/
/*! tablesorter (FORK) - updated 06-08-2017 (v2.28.14)*/
/* Includes widgets ( storage,uitheme,columns,filter,stickyHeaders,resizable,saveSort ) */
(function(factory) {
if (typeof define === 'function' && define.amd) {
Expand Down
2 changes: 1 addition & 1 deletion package.json
@@ -1,7 +1,7 @@
{
"name": "tablesorter",
"title": "tablesorter",
"version": "2.28.13",
"version": "2.28.14",
"description": "tablesorter (FORK) is a jQuery plugin for turning a standard HTML table with THEAD and TBODY tags into a sortable table without page refreshes. tablesorter can successfully parse and sort many types of data including linked data in a cell.",
"author": {
"name": "Christian Bach",
Expand Down
2 changes: 1 addition & 1 deletion tablesorter.jquery.json
@@ -1,7 +1,7 @@
{
"name": "tablesorter",
"title": "tablesorter",
"version": "2.28.13",
"version": "2.28.14",
"description": "tablesorter is a jQuery plugin for turning a standard HTML table with THEAD and TBODY tags into a sortable table without page refreshes. tablesorter can successfully parse and sort many types of data including linked data in a cell.\n\nThis forked version adds lots of new enhancements including: alphanumeric sorting, pager callback functons, multiple widgets providing column styling, ui theme application, sticky headers, column filters and resizer, as well as extended documentation with a lot more demos.",
"author": {
"name": "Christian Bach",
Expand Down

0 comments on commit d398c91

Please sign in to comment.