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(); +} +