From d2d89c36e018e0bd97afa02334745db7bce7562d Mon Sep 17 00:00:00 2001 From: Ignace Date: Thu, 14 May 2026 21:43:42 +0200 Subject: [PATCH] clear search after selecting an item --- templates/items_append.html | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/templates/items_append.html b/templates/items_append.html index 5f41e11..272d879 100644 --- a/templates/items_append.html +++ b/templates/items_append.html @@ -20,6 +20,7 @@ lappQueueItemRequest('/item_addone/'+button.name, { coalesceKey: 'item:' + button.name }); + clearSearch(); } // handle Add with quantity @@ -27,6 +28,7 @@ lappQueueItemRequest('/item_addquantity/'+button.name+'/'+q, { coalesceKey: 'item:' + button.name }); + clearSearch(); } //trigger change category button @@ -52,6 +54,11 @@ $(document).ready(function(){ }); }); +function clearSearch() { + $("#myInput").val(""); + $("#myList tbody tr").show(); +} +