Explorar el Código

Fix recipe page title not changing back.

Lee Morgan hace 6 años
padre
commit
5ad82c05f9
Se han modificado 2 ficheros con 2 adiciones y 1157 borrados
  1. 0 1157
      package-lock.json
  2. 2 0
      views/recipesPage/recipes.js

La diferencia del archivo ha sido suprimido porque es demasiado grande
+ 0 - 1157
package-lock.json


+ 2 - 0
views/recipesPage/recipes.js

@@ -4,6 +4,7 @@ let recipesPage = {
     displayRecipes: function(){
         document.querySelector("#recipes").style.display = "flex";
         document.querySelector("#ingredient").style.display = "none";
+        document.querySelector("#title").innerText = "Recipes";
 
         let body = document.querySelector("#recipesContainer");
 
@@ -81,6 +82,7 @@ let recipesPage = {
         }
     },
 
+    //Display the box in the table for adding another ingredient to a recipe
     displayAdd: function(recipe){
         let tbody = document.querySelector("tbody");
 

Algunos archivos no se mostraron porque demasiados archivos cambiaron en este cambio