mirror of
https://github.com/Mottie/tablesorter.git
synced 2024-11-15 23:54:22 +00:00
Filter: make "disabled" a modifiable class name
This commit is contained in:
parent
0d55b2e926
commit
16dd744bcc
@ -4,7 +4,7 @@
|
||||
██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██▀▀ ▀▀▀▀██
|
||||
█████▀ ▀████▀ ██ ██ ▀████▀ ██ ██ ██ ██ ▀████▀ █████▀ ██ ██ █████▀
|
||||
*/
|
||||
/*! tablesorter (FORK) widgets - updated 03-23-2015 (v2.21.2)*/
|
||||
/*! tablesorter (FORK) widgets - updated 03-24-2015 (v2.21.2)*/
|
||||
/* Includes: storage,uitheme,columns,filter,stickyHeaders,resizable,saveSort */
|
||||
(function(factory) {
|
||||
if (typeof define === 'function' && define.amd) {
|
||||
@ -365,9 +365,10 @@ var ts = $.tablesorter = $.tablesorter || {},
|
||||
tscss = ts.css;
|
||||
|
||||
$.extend(tscss, {
|
||||
filterRow : 'tablesorter-filter-row',
|
||||
filter : 'tablesorter-filter',
|
||||
filterRowHide : 'hideme'
|
||||
filterRow : 'tablesorter-filter-row',
|
||||
filter : 'tablesorter-filter',
|
||||
filterDisabled : 'disabled',
|
||||
filterRowHide : 'hideme'
|
||||
});
|
||||
|
||||
ts.addWidget({
|
||||
@ -903,7 +904,7 @@ ts.filter = {
|
||||
wo.filter_cssFilter ) || '';
|
||||
buildFilter.addClass( tscss.filter + ' ' + name ).attr('data-column', column);
|
||||
if (disabled) {
|
||||
buildFilter.attr('placeholder', '').addClass('disabled')[0].disabled = true; // disabled!
|
||||
buildFilter.attr('placeholder', '').addClass(tscss.filterDisabled)[0].disabled = true; // disabled!
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -8,9 +8,10 @@ var ts = $.tablesorter = $.tablesorter || {},
|
||||
tscss = ts.css;
|
||||
|
||||
$.extend(tscss, {
|
||||
filterRow : 'tablesorter-filter-row',
|
||||
filter : 'tablesorter-filter',
|
||||
filterRowHide : 'hideme'
|
||||
filterRow : 'tablesorter-filter-row',
|
||||
filter : 'tablesorter-filter',
|
||||
filterDisabled : 'disabled',
|
||||
filterRowHide : 'hideme'
|
||||
});
|
||||
|
||||
ts.addWidget({
|
||||
@ -546,7 +547,7 @@ ts.filter = {
|
||||
wo.filter_cssFilter ) || '';
|
||||
buildFilter.addClass( tscss.filter + ' ' + name ).attr('data-column', column);
|
||||
if (disabled) {
|
||||
buildFilter.attr('placeholder', '').addClass('disabled')[0].disabled = true; // disabled!
|
||||
buildFilter.attr('placeholder', '').addClass(tscss.filterDisabled)[0].disabled = true; // disabled!
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user