mirror of
https://github.com/grocy/grocy.git
synced 2025-08-19 20:11:16 +00:00
Delay DataTables search by 200ms (references #424)
This commit is contained in:
@@ -44,7 +44,7 @@ $("a[data-toggle='tab']").on("shown.bs.tab", function(e)
|
||||
window.localStorage.setItem("recipes_last_tab_id", tabId);
|
||||
});
|
||||
|
||||
$("#search").on("keyup", function()
|
||||
$("#search").on("keyup", Delay(function()
|
||||
{
|
||||
var value = $(this).val();
|
||||
|
||||
@@ -52,7 +52,7 @@ $("#search").on("keyup", function()
|
||||
|
||||
$(".recipe-gallery-item-container").removeClass("d-none");
|
||||
$(".recipe-gallery-item-container .card-title:not(:contains_case_insensitive(" + value + "))").parent().parent().parent().parent().addClass("d-none");
|
||||
});
|
||||
}, 200));
|
||||
|
||||
$("#status-filter").on("change", function()
|
||||
{
|
||||
|
Reference in New Issue
Block a user