clear search after selecting an item

This commit is contained in:
2026-05-14 21:43:42 +02:00
parent a739218fb0
commit d2d89c36e0
+7
View File
@@ -20,6 +20,7 @@
lappQueueItemRequest('/item_addone/'+button.name, { lappQueueItemRequest('/item_addone/'+button.name, {
coalesceKey: 'item:' + button.name coalesceKey: 'item:' + button.name
}); });
clearSearch();
} }
// handle Add with quantity // handle Add with quantity
@@ -27,6 +28,7 @@
lappQueueItemRequest('/item_addquantity/'+button.name+'/'+q, { lappQueueItemRequest('/item_addquantity/'+button.name+'/'+q, {
coalesceKey: 'item:' + button.name coalesceKey: 'item:' + button.name
}); });
clearSearch();
} }
//trigger change category button //trigger change category button
@@ -52,6 +54,11 @@ $(document).ready(function(){
}); });
}); });
function clearSearch() {
$("#myInput").val("");
$("#myList tbody tr").show();
}
</script> </script>
<form method="post" action="/items_append/{{ listid }}"> <form method="post" action="/items_append/{{ listid }}">