From 8cb43553fd2d3328fe9b1f7c5986e040071844c0 Mon Sep 17 00:00:00 2001 From: Miguel Ribeiro Date: Tue, 16 Jul 2024 00:30:40 +0200 Subject: [PATCH] fix: delete button on subscription form (#460) --- 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");