|
|
@@ -5,8 +5,13 @@ let newTransaction = {
|
|
|
|
|
|
let recipeList = document.getElementById("newTransAvailable");
|
|
|
recipeList.children[0].onkeyup = ()=>{this.searchRecipes()};
|
|
|
- while(recipeList.children.length > 0){
|
|
|
- recipeList.removeChild(recipeList.firstChild);
|
|
|
+ while(recipeList.children.length > 1){
|
|
|
+ recipeList.removeChild(recipeList.lastChild);
|
|
|
+ }
|
|
|
+
|
|
|
+ let transAdded = document.getElementById("newTransactionRecipes");
|
|
|
+ while(transAdded.children.length > 0){
|
|
|
+ transAdded.removeChild(transAdded.firstChild);
|
|
|
}
|
|
|
|
|
|
for(let i = 0; i < merchant.recipes.length; i++){
|