mirror of
https://github.com/Mottie/tablesorter.git
synced 2025-01-12 15:24:21 +00:00
Filter: extend filterFormatter functions
This commit is contained in:
parent
3f553c10d7
commit
37e7718ebe
2
dist/js/jquery.tablesorter.widgets.js
vendored
2
dist/js/jquery.tablesorter.widgets.js
vendored
@ -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) {
|
||||
|
2
dist/js/jquery.tablesorter.widgets.min.js
vendored
2
dist/js/jquery.tablesorter.widgets.min.js
vendored
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
@ -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) {
|
||||
|
@ -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);
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user