Delay DataTables search by 200ms (references #424)

This commit is contained in:
Bernd Bestel
2019-10-15 19:59:14 +02:00
parent 9e1804252e
commit e133508814
24 changed files with 61 additions and 45 deletions

View File

@@ -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()
{