浏览代码

Fix recipe page title not changing back.

Lee Morgan 6 年之前
父节点
当前提交
5ad82c05f9
共有 2 个文件被更改,包括 2 次插入1157 次删除
  1. 0 1157
      package-lock.json
  2. 2 0
      views/recipesPage/recipes.js

文件差异内容过多而无法显示
+ 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");
 

部分文件因为文件数量过多而无法显示