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) {
@ -367,6 +367,7 @@ var ts = $.tablesorter = $.tablesorter || {},
$.extend(tscss, {
filterRow : 'tablesorter-filter-row',
filter : 'tablesorter-filter',
filterDisabled : 'disabled',
filterRowHide : 'hideme'
});
@ -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

@ -10,6 +10,7 @@ var ts = $.tablesorter = $.tablesorter || {},
$.extend(tscss, {
filterRow : 'tablesorter-filter-row',
filter : 'tablesorter-filter',
filterDisabled : 'disabled',
filterRowHide : 'hideme'
});
@ -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!
}
}
}