Skip to content

Commit

Permalink
Removed modal opening through JS (#144)
Browse files Browse the repository at this point in the history
  • Loading branch information
MHamzaBham authored Jan 17, 2025
1 parent fd5799b commit 505eaea
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions public/assets/js/custom.js
Original file line number Diff line number Diff line change
Expand Up @@ -195,11 +195,6 @@ function openModalForAdd() {
document.getElementById("transactionModalTitle").textContent = "New Transaction";
document.getElementById("transactionModalSubmitBtn").textContent = "Add";
form.querySelector("#transaction_id").value = "";

const modalElement = document.getElementById("transactionModal");
const modal = new bootstrap.Modal(modalElement);

modal.show();
}

function openModalForEdit(element) {
Expand Down

0 comments on commit 505eaea

Please sign in to comment.