clear search after selecting an item
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
</script>
|
||||
|
||||
<form method="post" action="/items_append/{{ listid }}">
|
||||
|
||||
Reference in New Issue
Block a user