diff --git a/resources/views/includes/home.blade.php b/resources/views/includes/home.blade.php
index cd77d5e..52fe03a 100644
--- a/resources/views/includes/home.blade.php
+++ b/resources/views/includes/home.blade.php
@@ -202,7 +202,9 @@
showDenyButton: true,
showCancelButton: false,
confirmButtonText: "Pergi Ke Troli",
- denyButtonText: `Buang Troli`
+ denyButtonText: `Buang Troli`,
+ allowOutsideClick: false,
+ allowEscapeKey: false,
}).then((result) => {
const loader = document.getElementById('load-arrahn');
loader.classList.remove('d-none');
diff --git a/resources/views/modal/marhun.blade.php b/resources/views/modal/marhun.blade.php
index 4502123..3b5fa42 100644
--- a/resources/views/modal/marhun.blade.php
+++ b/resources/views/modal/marhun.blade.php
@@ -1,6 +1,6 @@
-
+{{-- --}}
@@ -212,7 +212,7 @@
event.preventDefault();
- document.getElementById('marhunLoader').style.display = 'flex';
+ // document.getElementById('marhunLoader').style.display = 'flex';
const norujukan = event.target.innerHTML;
try {
const data = await fetch('/api/pembiayaan-modal-data/' + norujukan + "/" + tagsyarikat)
@@ -272,12 +272,18 @@
]).draw(false)
});
- document.getElementById('marhunLoader').style.display = 'none';
+ // document.getElementById('marhunLoader').style.display = 'none';
+ // const loader = document.getElementById('load-arrahn');
+ loader.classList.add('d-none');
+
} catch (error) {
+ const loader = document.getElementById('load-arrahn');
console.error('Error fetching data:', error);
// Hide loader in case of error
- document.getElementById('marhunLoader').style.display = 'none';
+ // document.getElementById('marhunLoader').style.display = 'none';
+ loader.classList.add('d-none');
+
}
};
@@ -302,5 +308,5 @@
document.querySelector('#marhunModal').addEventListener('hidden.bs.modal', function(e) {
document.querySelector('#marhunModal .modal-header a[aria-controls="pills-marhun"]').click();
});
-')
+
@endpush