mirror of https://github.com/evilhero/mylar
replaced alphabetSearch.js with corrected one
This commit is contained in:
parent
0b394a7ba9
commit
8bdcb2f616
|
@ -101,7 +101,7 @@
|
|||
|
||||
<%def name="headIncludes()">
|
||||
<link rel="stylesheet" href="interfaces/default/css/data_table.css">
|
||||
<link type="text/css" href="css/alphabetSearch.css" rel="stylesheet">
|
||||
<link rel="stylesheet" href="css/alphabetSearch.css">
|
||||
</%def>
|
||||
|
||||
<%def name="javascriptIncludes()">
|
||||
|
|
|
@ -52,7 +52,7 @@ $.fn.dataTable.ext.search.push( function ( context, searchData ) {
|
|||
if ( ! context.alphabetSearch ) {
|
||||
return true;
|
||||
}
|
||||
if ( context.alphabetSearch.match('nonalpha') && !(searchData[1].charAt(0).match(/^[a-zA-Z]/
|
||||
if ( context.alphabetSearch.match('nonalpha') && !(searchData[1].charAt(0).match(/^[a-zA-Z]/)) ) {
|
||||
return true;
|
||||
}
|
||||
if ( searchData[1].charAt(0) === context.alphabetSearch ) {
|
||||
|
@ -173,3 +173,4 @@ $.fn.dataTable.ext.feature.push( {
|
|||
|
||||
|
||||
}());
|
||||
|
||||
|
|
Loading…
Reference in New Issue