Parcourir la source

Fix recipe page title not changing back.

Lee Morgan il y a 6 ans
Parent
commit
5ad82c05f9
2 fichiers modifiés avec 2 ajouts et 1157 suppressions
  1. 0 1157
      package-lock.json
  2. 2 0
      views/recipesPage/recipes.js

Fichier diff supprimé car celui-ci est trop grand
+ 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");
 

Certains fichiers n'ont pas été affichés car il y a eu trop de fichiers modifiés dans ce diff