Skip to content

Commit

Permalink
bug fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
fawzi-iit committed Dec 6, 2023
1 parent 505bfff commit f42b27b
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions public/js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f42b27b

Please sign in to comment.