Public/assets/scripts/delete-post.js
//when clicking on cancel, hide the delete form
when clicking on cancel, hide the delete form
when clicking on cancel hide the delete form
function hideDeleteForm(event) {
  const deleteForm = event.currentTarget.parentNode;
  deleteForm.classList.remove("show");
  background.classList.remove("background-show");
  event.currentTarget.classList.add("hide");
}
function hideDeleteForm ( event ) { const deleteForm = event . currentTarget . parentNode ; deleteForm . classList . remove ( "show" ) ; background . classList . remove ( "background-show" ) ; event . currentTarget . classList . add ( "hide" ) ; }
when clicking on cancel, hide the delete form
when clicking on cancel hide the delete form