From 359ebb8022c10287ce0af0a5e9bc5f5a35a5334a Mon Sep 17 00:00:00 2001 From: Miguel Ribeiro Date: Tue, 16 Jul 2024 00:27:59 +0200 Subject: [PATCH] fix: delete button on subscription form --- includes/version.php | 2 +- scripts/dashboard.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/version.php b/includes/version.php index 41e33ad23..d06d7b867 100644 --- a/includes/version.php +++ b/includes/version.php @@ -1,3 +1,3 @@ \ No newline at end of file diff --git a/scripts/dashboard.js b/scripts/dashboard.js index 828cfd97e..32ca26414 100644 --- a/scripts/dashboard.js +++ b/scripts/dashboard.js @@ -99,7 +99,7 @@ function fillEditFormFields(subscription) { const deleteButton = document.querySelector("#deletesub"); deleteButton.style = 'display: block'; - deleteButton.setAttribute("onClick", `deleteSubscription(${subscription.id})`); + deleteButton.setAttribute("onClick", `deleteSubscription(event, ${subscription.id})`); const modal = document.getElementById('subscription-form'); modal.classList.add("is-open");