mirror of
https://github.com/grocy/grocy.git
synced 2025-09-29 19:12:24 +00:00
Delay DataTables search by 200ms (references #424)
This commit is contained in:
@@ -11,7 +11,7 @@
|
||||
$('#tasks-table tbody').removeClass("d-none");
|
||||
tasksTable.columns.adjust().draw();
|
||||
|
||||
$("#search").on("keyup", function()
|
||||
$("#search").on("keyup", Delay(function()
|
||||
{
|
||||
var value = $(this).val();
|
||||
if (value === "all")
|
||||
@@ -20,7 +20,7 @@ $("#search").on("keyup", function()
|
||||
}
|
||||
|
||||
tasksTable.search(value).draw();
|
||||
});
|
||||
}, 200));
|
||||
|
||||
$("#status-filter").on("change", function()
|
||||
{
|
||||
|
Reference in New Issue
Block a user