mirror of
https://github.com/grocy/grocy.git
synced 2025-10-25 13:36:17 +00:00
Delay DataTables search by 200ms (references #424)
This commit is contained in:
@@ -13,7 +13,7 @@ if (createdApiKeyId !== undefined)
|
||||
$('#apiKeyRow_' + createdApiKeyId).effect('highlight', {}, 3000);
|
||||
}
|
||||
|
||||
$("#search").on("keyup", function()
|
||||
$("#search").on("keyup", Delay(function()
|
||||
{
|
||||
var value = $(this).val();
|
||||
if (value === "all")
|
||||
@@ -22,7 +22,7 @@ $("#search").on("keyup", function()
|
||||
}
|
||||
|
||||
apiKeysTable.search(value).draw();
|
||||
});
|
||||
}, 200));
|
||||
|
||||
$(document).on('click', '.apikey-delete-button', function (e)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user