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) {
|
||||
@ -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!
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -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!
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user