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