Adds ability to choose column for search

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

@ -49,7 +49,7 @@ $.fn.dataTable.ext.search.push( function ( context, searchData ) {
return true;
}
if ( searchData[0].charAt(0) === context.alphabetSearch ) {
if ( searchData[$.fn.dataTable.AlphabetSearch.column].charAt(0).toUpperCase() === context.alphabetSearch ) {
return true;
}
@ -83,7 +83,7 @@ function draw ( table, alphabet )
alphabet.empty();
alphabet.append( 'Search: ' );
var columnData = table.column(0).data();
var columnData = table.column($.fn.dataTable.AlphabetSearch.column).data();
var bins = bin( columnData );
$('<span class="clear active"/>')

Loading…
Cancel
Save