From a2e50a01955826e9ed423ebf07ea4409da525d1c Mon Sep 17 00:00:00 2001 From: franc Date: Mon, 5 May 2025 12:33:05 +0200 Subject: [PATCH] Move all js scripts into this file --- Francesco.Recipes.World/wwwroot/js/site.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Francesco.Recipes.World/wwwroot/js/site.js b/Francesco.Recipes.World/wwwroot/js/site.js index c69a044..12bdab8 100644 --- a/Francesco.Recipes.World/wwwroot/js/site.js +++ b/Francesco.Recipes.World/wwwroot/js/site.js @@ -103,7 +103,7 @@ async function removeInstruction(instructionId, recipeIdParam) { function addInstruction() { const container = document.getElementById('instructions-container'); - const index = document.querySelectorAll('.instruction-item').length; // Index for model binding + const index = document.querySelectorAll('.instruction-item').length; const newInstructionHtml = `
@@ -150,7 +150,7 @@ async function removeIngredient(ingredientId) { async function addIngredient() { const container = document.getElementById('ingredients-container'); - const index = document.querySelectorAll('.ingredient-item').length; // Index for model binding + const index = document.querySelectorAll('.ingredient-item').length; const newIngredientHtml = `