Added caseSensitive variable

pull/513/head
Przemysław Kłys 4 years ago committed by GitHub
parent 1400429289
commit c83dcaae80

@ -49,9 +49,15 @@ $.fn.dataTable.ext.search.push( function ( context, searchData ) {
return true;
}
if ($.fn.dataTable.AlphabetSearch.caseSensitive) {
if ( searchData[$.fn.dataTable.AlphabetSearch.column].charAt(0) === context.alphabetSearch ) {
return true;
}
} else {
if ( searchData[$.fn.dataTable.AlphabetSearch.column].charAt(0).toUpperCase() === context.alphabetSearch ) {
return true;
}
}
return false;
} );

Loading…
Cancel
Save