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

@@ -53,7 +53,7 @@ $(".status-filter-button").on("click", function()
$("#status-filter").trigger("change");
});
$("#search").on("keyup", function()
$("#search").on("keyup", Delay(function()
{
var value = $(this).val();
if (value === "all")
@@ -62,7 +62,7 @@ $("#search").on("keyup", function()
}
stockOverviewTable.search(value).draw();
});
}, 200));
$(document).on('click', '.product-consume-button', function(e)
{