Filter: make "disabled" a modifiable class name

This commit is contained in:
Mottie 2015-03-24 13:29:41 -05:00
parent 0d55b2e926
commit 16dd744bcc
2 changed files with 11 additions and 9 deletions

View File

@ -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!
}
}
}

View File

@ -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!
}
}
}