|
|
@@ -3390,7 +3390,6 @@ let recipeBook = {
|
|
|
document.getElementById("posUpdateRecipe").onclick = ()=>{this.posUpdate(Recipe)};
|
|
|
}
|
|
|
document.getElementById("recipeSearch").oninput = ()=>{this.search()};
|
|
|
- document.getElementById("recipeClearButton").onclick = ()=>{this.clearSorting()};
|
|
|
|
|
|
this.populateRecipes();
|
|
|
|
|
|
@@ -3426,7 +3425,6 @@ let recipeBook = {
|
|
|
search: function(){
|
|
|
let input = document.getElementById("recipeSearch").value.toLowerCase();
|
|
|
let recipeList = document.getElementById("recipeList");
|
|
|
- let clearButton = document.getElementById("recipeClearButton");
|
|
|
|
|
|
let matchingRecipes = [];
|
|
|
for(let i = 0; i < this.recipeDivList.length; i++){
|
|
|
@@ -3441,17 +3439,6 @@ let recipeBook = {
|
|
|
for(let i = 0; i < matchingRecipes.length; i++){
|
|
|
recipeList.appendChild(matchingRecipes[i]);
|
|
|
}
|
|
|
-
|
|
|
- if(input === ""){
|
|
|
- clearButton.style.display = "none";
|
|
|
- }else{
|
|
|
- clearButton.style.display = "inline";
|
|
|
- }
|
|
|
- },
|
|
|
-
|
|
|
- clearSorting: function(){
|
|
|
- document.getElementById("recipeSearch").value = "";
|
|
|
- this.search();
|
|
|
},
|
|
|
|
|
|
posUpdate: function(Recipe){
|