Filter: extend filterFormatter functions

This commit is contained in:
Mottie 2015-03-02 11:16:08 -06:00
parent 3f553c10d7
commit 37e7718ebe
7 changed files with 9 additions and 10 deletions

View File

@ -1,4 +1,4 @@
/*! tablesorter (FORK) widgets - updated 02-27-2015 (v2.20.1)*/
/*! tablesorter (FORK) widgets - updated 03-02-2015 (v2.20.1)*/
/* Includes: storage,uitheme,columns,filter,stickyHeaders,resizable,saveSort */
/*! Widget: storage */
;(function ($, window, document) {

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -4,7 +4,7 @@
*/
/*! tablesorter (FORK) widgets - updated 02-27-2015 (v2.20.1)*/
/*! tablesorter (FORK) widgets - updated 03-02-2015 (v2.20.1)*/
/* Includes: storage,uitheme,columns,filter,stickyHeaders,resizable,saveSort */
/*! Widget: storage */
;(function ($, window, document) {

View File

@ -16,7 +16,7 @@ var ts = $.tablesorter || {},
compareSelect = '.compare-select',
tsff = ts.filterFormatter = {
tsff = $.extend( {}, ts.filterFormatter, {
addCompare: function($cell, indx, options){
if (options.compare && $.isArray(options.compare) && options.compare.length > 1) {
@ -424,6 +424,6 @@ tsff = ts.filterFormatter = {
return colorSupported ? $cell.find('input[type="hidden"]') : $('<input type="search">');
}
};
});
})(jQuery);

View File

@ -17,8 +17,7 @@ var ts = $.tablesorter || {},
// compare option selector class name (jQuery selector)
compareSelect = '.compare-select',
tsff = ts.filterFormatter = {
tsff = $.extend( {}, ts.filterFormatter, {
addCompare: function($cell, indx, options){
if (options.compare && $.isArray(options.compare) && options.compare.length > 1) {
@ -760,6 +759,6 @@ tsff = ts.filterFormatter = {
return $input.val( o.from ? ( o.to ? o.from + ' - ' + o.to : '>=' + o.from ) : (o.to ? '<=' + o.to : '') );
}
};
});
})(jQuery);