version bump

This commit is contained in:
Mottie 2015-05-17 23:01:15 -05:00
parent f07e70ed0b
commit ce9cf604eb
17 changed files with 42 additions and 38 deletions

View File

@ -82,6 +82,10 @@ If you would like to contribute, please...
View the [complete change log here](//github.com/Mottie/tablesorter/wiki/Changes). View the [complete change log here](//github.com/Mottie/tablesorter/wiki/Changes).
#### <a name="v2.22.1">Version 2.22.1</a> (5/17/2015)
* Filter: fix issue with searches always looking for parsed content in numeric columns.
#### <a name="v2.22.0">Version 2.22.0</a> (5/17/2015) #### <a name="v2.22.0">Version 2.22.0</a> (5/17/2015)
* Docs * Docs

View File

@ -1,6 +1,6 @@
{ {
"name": "tablesorter", "name": "tablesorter",
"version": "2.22.0", "version": "2.22.1",
"dependencies": { "dependencies": {
"jquery": ">=1.2.6" "jquery": ">=1.2.6"
}, },

View File

@ -1,4 +1,4 @@
/*! tablesorter (FORK) - updated 05-17-2015 (v2.22.0)*/ /*! tablesorter (FORK) - updated 05-17-2015 (v2.22.1)*/
/* Includes widgets ( storage,uitheme,columns,filter,stickyHeaders,resizable,saveSort ) */ /* Includes widgets ( storage,uitheme,columns,filter,stickyHeaders,resizable,saveSort ) */
(function(factory) { (function(factory) {
if (typeof define === 'function' && define.amd) { if (typeof define === 'function' && define.amd) {
@ -10,7 +10,7 @@
} }
}(function($) { }(function($) {
/*! TableSorter (FORK) v2.22.0 *//* /*! TableSorter (FORK) v2.22.1 *//*
* Client-side table sorting with ease! * Client-side table sorting with ease!
* @requires jQuery v1.2.6+ * @requires jQuery v1.2.6+
* *
@ -38,7 +38,7 @@
var ts = this; var ts = this;
ts.version = '2.22.0'; ts.version = '2.22.1';
ts.parsers = []; ts.parsers = [];
ts.widgets = []; ts.widgets = [];
@ -2538,7 +2538,7 @@ ts.addWidget({
})(jQuery); })(jQuery);
/*! Widget: filter - updated 5/17/2015 (v2.22.0) *//* /*! Widget: filter - updated 5/17/2015 (v2.22.1) *//*
* Requires tablesorter v2.8+ and jQuery 1.7+ * Requires tablesorter v2.8+ and jQuery 1.7+
* by Rob Garrison * by Rob Garrison
*/ */
@ -2787,7 +2787,7 @@ ts.filter = {
var index = data.index, var index = data.index,
parsed = data.parsed[ index ], parsed = data.parsed[ index ],
txt = data.iFilter.replace( ts.filter.regex.orReplace, '|' ), txt = data.iFilter.replace( ts.filter.regex.orReplace, '|' ),
query = ts.filter.parseFilter( c, txt, index, parsed ) || ''; query = '' + ( ts.filter.parseFilter( c, txt, index, parsed ) || '' );
// look for an exact match with the 'or' unless the 'filter-match' class is found // look for an exact match with the 'or' unless the 'filter-match' class is found
if ( !c.$headerIndexed[ index ].hasClass( 'filter-match' ) && /\|/.test( query ) ) { if ( !c.$headerIndexed[ index ].hasClass( 'filter-match' ) && /\|/.test( query ) ) {
// show all results while using filter match. Fixes #727 // show all results while using filter match. Fixes #727
@ -3605,7 +3605,7 @@ ts.filter = {
data.parsed = c.$headers.map( function( columnIndex ) { data.parsed = c.$headers.map( function( columnIndex ) {
return c.parsers && c.parsers[ columnIndex ] && return c.parsers && c.parsers[ columnIndex ] &&
// force parsing if parser type is numeric // force parsing if parser type is numeric
( c.parsers[ columnIndex ].parsed || c.parsers[ columnIndex ].type === 'numeric' ) || c.parsers[ columnIndex ].parsed ||
// getData won't return 'parsed' if other 'filter-' class names exist // getData won't return 'parsed' if other 'filter-' class names exist
// ( e.g. <th class="filter-select filter-parsed"> ) // ( e.g. <th class="filter-select filter-parsed"> )
ts.getData && ts.getData( c.$headerIndexed[ columnIndex ], ts.getData && ts.getData( c.$headerIndexed[ columnIndex ],

File diff suppressed because one or more lines are too long

View File

@ -8,7 +8,7 @@
} }
}(function($) { }(function($) {
/*! TableSorter (FORK) v2.22.0 *//* /*! TableSorter (FORK) v2.22.1 *//*
* Client-side table sorting with ease! * Client-side table sorting with ease!
* @requires jQuery v1.2.6+ * @requires jQuery v1.2.6+
* *
@ -36,7 +36,7 @@
var ts = this; var ts = this;
ts.version = '2.22.0'; ts.version = '2.22.1';
ts.parsers = []; ts.parsers = [];
ts.widgets = []; ts.widgets = [];

File diff suppressed because one or more lines are too long

View File

@ -1,4 +1,4 @@
/*! tablesorter (FORK) - updated 05-17-2015 (v2.22.0)*/ /*! tablesorter (FORK) - updated 05-17-2015 (v2.22.1)*/
/* Includes widgets ( storage,uitheme,columns,filter,stickyHeaders,resizable,saveSort ) */ /* Includes widgets ( storage,uitheme,columns,filter,stickyHeaders,resizable,saveSort ) */
(function(factory) { (function(factory) {
if (typeof define === 'function' && define.amd) { if (typeof define === 'function' && define.amd) {
@ -365,7 +365,7 @@ ts.addWidget({
})(jQuery); })(jQuery);
/*! Widget: filter - updated 5/17/2015 (v2.22.0) *//* /*! Widget: filter - updated 5/17/2015 (v2.22.1) *//*
* Requires tablesorter v2.8+ and jQuery 1.7+ * Requires tablesorter v2.8+ and jQuery 1.7+
* by Rob Garrison * by Rob Garrison
*/ */
@ -614,7 +614,7 @@ ts.filter = {
var index = data.index, var index = data.index,
parsed = data.parsed[ index ], parsed = data.parsed[ index ],
txt = data.iFilter.replace( ts.filter.regex.orReplace, '|' ), txt = data.iFilter.replace( ts.filter.regex.orReplace, '|' ),
query = ts.filter.parseFilter( c, txt, index, parsed ) || ''; query = '' + ( ts.filter.parseFilter( c, txt, index, parsed ) || '' );
// look for an exact match with the 'or' unless the 'filter-match' class is found // look for an exact match with the 'or' unless the 'filter-match' class is found
if ( !c.$headerIndexed[ index ].hasClass( 'filter-match' ) && /\|/.test( query ) ) { if ( !c.$headerIndexed[ index ].hasClass( 'filter-match' ) && /\|/.test( query ) ) {
// show all results while using filter match. Fixes #727 // show all results while using filter match. Fixes #727
@ -1432,7 +1432,7 @@ ts.filter = {
data.parsed = c.$headers.map( function( columnIndex ) { data.parsed = c.$headers.map( function( columnIndex ) {
return c.parsers && c.parsers[ columnIndex ] && return c.parsers && c.parsers[ columnIndex ] &&
// force parsing if parser type is numeric // force parsing if parser type is numeric
( c.parsers[ columnIndex ].parsed || c.parsers[ columnIndex ].type === 'numeric' ) || c.parsers[ columnIndex ].parsed ||
// getData won't return 'parsed' if other 'filter-' class names exist // getData won't return 'parsed' if other 'filter-' class names exist
// ( e.g. <th class="filter-select filter-parsed"> ) // ( e.g. <th class="filter-select filter-parsed"> )
ts.getData && ts.getData( c.$headerIndexed[ columnIndex ], ts.getData && ts.getData( c.$headerIndexed[ columnIndex ],

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -18,7 +18,7 @@
<!-- Tablesorter: required --> <!-- Tablesorter: required -->
<link rel="stylesheet" href="../css/theme.blue.css"> <link rel="stylesheet" href="../css/theme.blue.css">
<script src="../js/jquery.tablesorter.js"></script> <script src="../js/jquery.tablesorter.js"></script>
<script src="../js/jquery.tablesorter.widgets.js"></script> <script src="../js/widgets/widget-filter.js"></script>
<script> <script>
$(function(){ $(function(){

View File

@ -298,7 +298,7 @@ $(function() {
<td>Setting this to <code>true</code> will add a fixed overlay which can be used for styling (<span class="version">v2.22.0</span>). <td>Setting this to <code>true</code> will add a fixed overlay which can be used for styling (<span class="version">v2.22.0</span>).
<div class="collapsible"> <div class="collapsible">
<p>A class name of "tablesorter-scroller-fixed-panel" is added to the overlay.</p> <p>A class name of "tablesorter-scroller-fixed-panel" is added to the overlay.</p>
<p>Here is are two examples: <p>Here is are two examples:</p>
<h4><a href="http://jsfiddle.net/856bzzeL/206/">Semi-transparent overlay</a>*</h4> <h4><a href="http://jsfiddle.net/856bzzeL/206/">Semi-transparent overlay</a>*</h4>
<pre class="prettyprint lang-css locked">div.tablesorter-scroller-fixed-panel { <pre class="prettyprint lang-css locked">div.tablesorter-scroller-fixed-panel {
background-color: rgba( 0, 0, 0, 0.4); background-color: rgba( 0, 0, 0, 0.4);

View File

@ -481,7 +481,7 @@
<li><a href="example-widget-column-selector.html">Column Selector widget</a> (<span class="version">v2.15</span>; <span class="version updated">v2.21.0</span>).</li> <li><a href="example-widget-column-selector.html">Column Selector widget</a> (<span class="version">v2.15</span>; <span class="version updated">v2.21.0</span>).</li>
<li><a href="example-widget-editable.html">Content Editable widget</a> (v2.9; <span class="version updated">v2.22.0</span>).</li> <li><a href="example-widget-editable.html">Content Editable widget</a> (v2.9; <span class="version updated">v2.22.0</span>).</li>
<li><span class="label label-info">Beta</span> <a href="example-dragtable.html">Dragtable mod</a> - (jQuery UI widget for column reordering [<a href="http://stackoverflow.com/a/27770224/145346">ref</a>]; <span class="version">v2.19.0</span>).</li> <li><span class="label label-info">Beta</span> <a href="example-dragtable.html">Dragtable mod</a> - (jQuery UI widget for column reordering [<a href="http://stackoverflow.com/a/27770224/145346">ref</a>]; <span class="version">v2.19.0</span>).</li>
<li><span class="results">&dagger;</span> Filter Widget (<span class="version updated">v2.22.0</span>): <li><span class="results">&dagger;</span> Filter Widget (<span class="version updated">v2.22.1</span>):
<ul> <ul>
<li><a href="example-widget-filter.html">basic</a> (v2.0.18; <span class="version updated">v2.18.1</span>)</li> <li><a href="example-widget-filter.html">basic</a> (v2.0.18; <span class="version updated">v2.18.1</span>)</li>
<li><a href="example-widget-filter-any-match.html">external option (match any column)</a> (<span class="version">v2.13.3</span>; <span class="version updated">v2.22.0</span>)</li> <li><a href="example-widget-filter-any-match.html">external option (match any column)</a> (<span class="version">v2.13.3</span>; <span class="version updated">v2.22.0</span>)</li>

View File

@ -4,7 +4,7 @@
*/ */
/*! tablesorter (FORK) - updated 05-17-2015 (v2.22.0)*/ /*! tablesorter (FORK) - updated 05-17-2015 (v2.22.1)*/
/* Includes widgets ( storage,uitheme,columns,filter,stickyHeaders,resizable,saveSort ) */ /* Includes widgets ( storage,uitheme,columns,filter,stickyHeaders,resizable,saveSort ) */
(function(factory) { (function(factory) {
if (typeof define === 'function' && define.amd) { if (typeof define === 'function' && define.amd) {
@ -16,7 +16,7 @@
} }
}(function($) { }(function($) {
/*! TableSorter (FORK) v2.22.0 *//* /*! TableSorter (FORK) v2.22.1 *//*
* Client-side table sorting with ease! * Client-side table sorting with ease!
* @requires jQuery v1.2.6+ * @requires jQuery v1.2.6+
* *
@ -44,7 +44,7 @@
var ts = this; var ts = this;
ts.version = '2.22.0'; ts.version = '2.22.1';
ts.parsers = []; ts.parsers = [];
ts.widgets = []; ts.widgets = [];
@ -2544,7 +2544,7 @@ ts.addWidget({
})(jQuery); })(jQuery);
/*! Widget: filter - updated 5/17/2015 (v2.22.0) *//* /*! Widget: filter - updated 5/17/2015 (v2.22.1) *//*
* Requires tablesorter v2.8+ and jQuery 1.7+ * Requires tablesorter v2.8+ and jQuery 1.7+
* by Rob Garrison * by Rob Garrison
*/ */
@ -2793,7 +2793,7 @@ ts.filter = {
var index = data.index, var index = data.index,
parsed = data.parsed[ index ], parsed = data.parsed[ index ],
txt = data.iFilter.replace( ts.filter.regex.orReplace, '|' ), txt = data.iFilter.replace( ts.filter.regex.orReplace, '|' ),
query = ts.filter.parseFilter( c, txt, index, parsed ) || ''; query = '' + ( ts.filter.parseFilter( c, txt, index, parsed ) || '' );
// look for an exact match with the 'or' unless the 'filter-match' class is found // look for an exact match with the 'or' unless the 'filter-match' class is found
if ( !c.$headerIndexed[ index ].hasClass( 'filter-match' ) && /\|/.test( query ) ) { if ( !c.$headerIndexed[ index ].hasClass( 'filter-match' ) && /\|/.test( query ) ) {
// show all results while using filter match. Fixes #727 // show all results while using filter match. Fixes #727
@ -3611,7 +3611,7 @@ ts.filter = {
data.parsed = c.$headers.map( function( columnIndex ) { data.parsed = c.$headers.map( function( columnIndex ) {
return c.parsers && c.parsers[ columnIndex ] && return c.parsers && c.parsers[ columnIndex ] &&
// force parsing if parser type is numeric // force parsing if parser type is numeric
( c.parsers[ columnIndex ].parsed || c.parsers[ columnIndex ].type === 'numeric' ) || c.parsers[ columnIndex ].parsed ||
// getData won't return 'parsed' if other 'filter-' class names exist // getData won't return 'parsed' if other 'filter-' class names exist
// ( e.g. <th class="filter-select filter-parsed"> ) // ( e.g. <th class="filter-select filter-parsed"> )
ts.getData && ts.getData( c.$headerIndexed[ columnIndex ], ts.getData && ts.getData( c.$headerIndexed[ columnIndex ],

View File

@ -1,4 +1,4 @@
/*! TableSorter (FORK) v2.22.0 *//* /*! TableSorter (FORK) v2.22.1 *//*
* Client-side table sorting with ease! * Client-side table sorting with ease!
* @requires jQuery v1.2.6+ * @requires jQuery v1.2.6+
* *
@ -26,7 +26,7 @@
var ts = this; var ts = this;
ts.version = '2.22.0'; ts.version = '2.22.1';
ts.parsers = []; ts.parsers = [];
ts.widgets = []; ts.widgets = [];

View File

@ -4,7 +4,7 @@
*/ */
/*! tablesorter (FORK) - updated 05-17-2015 (v2.22.0)*/ /*! tablesorter (FORK) - updated 05-17-2015 (v2.22.1)*/
/* Includes widgets ( storage,uitheme,columns,filter,stickyHeaders,resizable,saveSort ) */ /* Includes widgets ( storage,uitheme,columns,filter,stickyHeaders,resizable,saveSort ) */
(function(factory) { (function(factory) {
if (typeof define === 'function' && define.amd) { if (typeof define === 'function' && define.amd) {
@ -371,7 +371,7 @@ ts.addWidget({
})(jQuery); })(jQuery);
/*! Widget: filter - updated 5/17/2015 (v2.22.0) *//* /*! Widget: filter - updated 5/17/2015 (v2.22.1) *//*
* Requires tablesorter v2.8+ and jQuery 1.7+ * Requires tablesorter v2.8+ and jQuery 1.7+
* by Rob Garrison * by Rob Garrison
*/ */
@ -620,7 +620,7 @@ ts.filter = {
var index = data.index, var index = data.index,
parsed = data.parsed[ index ], parsed = data.parsed[ index ],
txt = data.iFilter.replace( ts.filter.regex.orReplace, '|' ), txt = data.iFilter.replace( ts.filter.regex.orReplace, '|' ),
query = ts.filter.parseFilter( c, txt, index, parsed ) || ''; query = '' + ( ts.filter.parseFilter( c, txt, index, parsed ) || '' );
// look for an exact match with the 'or' unless the 'filter-match' class is found // look for an exact match with the 'or' unless the 'filter-match' class is found
if ( !c.$headerIndexed[ index ].hasClass( 'filter-match' ) && /\|/.test( query ) ) { if ( !c.$headerIndexed[ index ].hasClass( 'filter-match' ) && /\|/.test( query ) ) {
// show all results while using filter match. Fixes #727 // show all results while using filter match. Fixes #727
@ -1438,7 +1438,7 @@ ts.filter = {
data.parsed = c.$headers.map( function( columnIndex ) { data.parsed = c.$headers.map( function( columnIndex ) {
return c.parsers && c.parsers[ columnIndex ] && return c.parsers && c.parsers[ columnIndex ] &&
// force parsing if parser type is numeric // force parsing if parser type is numeric
( c.parsers[ columnIndex ].parsed || c.parsers[ columnIndex ].type === 'numeric' ) || c.parsers[ columnIndex ].parsed ||
// getData won't return 'parsed' if other 'filter-' class names exist // getData won't return 'parsed' if other 'filter-' class names exist
// ( e.g. <th class="filter-select filter-parsed"> ) // ( e.g. <th class="filter-select filter-parsed"> )
ts.getData && ts.getData( c.$headerIndexed[ columnIndex ], ts.getData && ts.getData( c.$headerIndexed[ columnIndex ],

View File

@ -1,7 +1,7 @@
{ {
"name": "tablesorter", "name": "tablesorter",
"title": "tablesorter", "title": "tablesorter",
"version": "2.22.0", "version": "2.22.1",
"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.", "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": { "author": {
"name": "Christian Bach", "name": "Christian Bach",

View File

@ -1,7 +1,7 @@
{ {
"name": "tablesorter", "name": "tablesorter",
"title": "tablesorter", "title": "tablesorter",
"version": "2.22.0", "version": "2.22.1",
"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.", "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": { "author": {
"name": "Christian Bach", "name": "Christian Bach",