From f42b27bb10a26327ca6285fd093f0c082707e099 Mon Sep 17 00:00:00 2001 From: Fawzi Mahmoud Date: Wed, 6 Dec 2023 16:39:44 -0600 Subject: [PATCH] bug fixes --- public/js/main.js | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/public/js/main.js b/public/js/main.js index 3990f6f..37f679b 100644 --- a/public/js/main.js +++ b/public/js/main.js @@ -268,18 +268,6 @@ deleteButtons.forEach(button => { }); -// Event Listener for the Delete Button -document.getElementById('deleteProjectButton').addEventListener('click', function() { - const projectId = this.getAttribute('data-projectid'); - console.log("Delete button clicked for project ID:", projectId); // Log the project ID - if (confirm('Are you sure you want to delete the selected project and related tasks?')) { - deleteProject(projectId); - } else { - // Optionally, refresh the project list - loadProjects(); - } -}); - // Function to Delete Project function deleteProject(projectId) { console.log("Attempting to delete project with ID:", projectId); // Log the project ID