Search / filter is no longer working.
Search / filter is no longer working.
I'm sure I've fouled something up in my initialization but everything was working nicely and it seems that the search has stopped working. I don't see any errors on console or anything just the results don't filter down at all.
Link to the page is here:
http://stick-livescores-test.herokuapp.com/leaderboard/open/
debug is here: http://debug.datatables.net/obeqol
Search for any name text even one on the screen and nothing happens.
My initialization looks like the following:
var table = $('#ScoreTable').DataTable({
"paging": false,
"scrollY": table_height,
"info": false,
"ordering": false,
"processing": false,
"serverSide": true,
"searching": true,
"ajax": "/leaderboard.json?type=open",
"language": { "search": "Find Player" },
"dom": '<"top"r>t<"bottom"f><"clear">',
"columns": [
{ "data": "rank", "className": "rank" },
{ "data": "player_name", "className": "player_name" },
{ "data": "to_par", "className": "overall" },
{ "data": "round_to_par", "className": "today", "type": "num" },
{ "data": "r1", "className": "roundscore hidden-xs" },
{ "data": "r2", "className": "roundscore hidden-xs" },
{ "data": "r3", "className": "roundscore hidden-xs" },
{ "data": "r4", "className": "roundscore hidden-xs" },
{ "data": "thru", "className": "thru" },
],
language: {
emptyTable: "No Rounds Available.",
},
});
I previously had several columns using the render function but I removed it for simplicity and in hopes that was the problem (it wasn't).
Thanks,
Chris
Answers
figured it out, looks like I had unintentionally set serverSide true at some point and the backend wasn't actually filtering anything.