mirror of
https://github.com/Solo-Web-Works/BillTrak.git
synced 2026-01-29 09:50:34 +00:00
🐞 fix: Get rid of SonarLint style conflict error
This commit is contained in:
@@ -85,7 +85,7 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Edit Modal -->
|
<!-- Edit Modal -->
|
||||||
<div id="editModal" class="fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center hidden">
|
<div id="editModal" class="fixed inset-0 bg-black bg-opacity-50 items-center justify-center hidden">
|
||||||
<div class="bg-white p-6 rounded-lg shadow-lg w-96">
|
<div class="bg-white p-6 rounded-lg shadow-lg w-96">
|
||||||
<h2 class="text-xl font-bold mb-4">Edit Payment</h2>
|
<h2 class="text-xl font-bold mb-4">Edit Payment</h2>
|
||||||
<form id="editForm" class="space-y-4">
|
<form id="editForm" class="space-y-4">
|
||||||
|
|||||||
@@ -111,6 +111,7 @@ document.addEventListener('DOMContentLoaded', () => {
|
|||||||
document.getElementById('editFormBillName').value = bill.billName;
|
document.getElementById('editFormBillName').value = bill.billName;
|
||||||
|
|
||||||
// Open the modal
|
// Open the modal
|
||||||
|
document.getElementById('editModal').classList.add('flex');
|
||||||
document.getElementById('editModal').classList.remove('hidden');
|
document.getElementById('editModal').classList.remove('hidden');
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -191,11 +192,12 @@ document.addEventListener('DOMContentLoaded', () => {
|
|||||||
|
|
||||||
// Event listener for close button in the modal
|
// Event listener for close button in the modal
|
||||||
document.getElementById('editFormCancel').addEventListener('click', () => {
|
document.getElementById('editFormCancel').addEventListener('click', () => {
|
||||||
// Close the modal
|
|
||||||
document.getElementById('editModal').classList.add('hidden');
|
|
||||||
|
|
||||||
// Clear modal fields
|
// Clear modal fields
|
||||||
document.getElementById('editForm').reset();
|
document.getElementById('editForm').reset();
|
||||||
|
|
||||||
|
// Close the modal
|
||||||
|
document.getElementById('editModal').classList.add('hidden');
|
||||||
|
document.getElementById('editModal').classList.remove('flex');
|
||||||
});
|
});
|
||||||
|
|
||||||
// On page load
|
// On page load
|
||||||
|
|||||||
Reference in New Issue
Block a user