Replace search function
This commit is contained in:
parent
e4f1063f77
commit
8f7c17161b
|
@ -91,6 +91,7 @@
|
|||
<script type="text/javascript">
|
||||
var options = {
|
||||
valueNames: ['listing-metadata', 'icon', 'title', 'type', 'compatibility', 'date-tested'],
|
||||
searchColumns: [ 'listing-metadata' ],
|
||||
pagination: true,
|
||||
indexAsync: true,
|
||||
page: 50
|
||||
|
@ -100,11 +101,6 @@
|
|||
|
||||
list.sort("title", {order: "asc"});
|
||||
|
||||
$('#search-box').keyup(function() {
|
||||
var searchString = $(this).val();
|
||||
list.fuzzySearch(searchString, ['listing-metadata']);
|
||||
});
|
||||
|
||||
list.on("updated", function(){
|
||||
$("#compatibility-list tbody tr.key").removeClass("key");
|
||||
if ($("#compatibility-list thead").find("th.asc[data-sort='title'], th.desc[data-sort='title']").length){
|
||||
|
|
Reference in New Issue