fix(master-land): fix form view form add page

This commit is contained in:
arieeefajar 2025-02-28 18:20:18 +07:00
parent e13253cc8b
commit fad9d0845b
1 changed files with 27 additions and 25 deletions

View File

@ -126,6 +126,7 @@ function validatePrice(input) {
}
function showmap(districtId) {
loading.style.display = "block";
if (!navigator.geolocation) {
alert("Geolocation tidak didukung oleh browser ini.");
return;
@ -133,6 +134,7 @@ function showmap(districtId) {
navigator.geolocation.getCurrentPosition(
function (position) {
loading.style.display = "none";
mapContainer.style.display = "block";
map.invalidateSize();
@ -690,31 +692,31 @@ function updateList() {
}
refreshCallbacks(),
filterContact("All"),
document
.getElementById("showModal")
.addEventListener("show.bs.modal", function (e) {
e.relatedTarget.classList.contains("edit-item-btn")
? ((document.getElementById("exampleModalLabel").innerHTML =
"Edit Customer"),
(document
.getElementById("showModal")
.querySelector(".modal-footer").style.display = "block"),
(document.getElementById("add-btn").style.display = "none"),
(document.getElementById("edit-btn").style.display = "block"))
: e.relatedTarget.classList.contains("add-btn")
? ((document.getElementById("exampleModalLabel").innerHTML =
"Tambah Data Lahan"),
(document
.getElementById("showModal")
.querySelector(".modal-footer").style.display = "block"),
(document.getElementById("edit-btn").style.display = "none"),
(document.getElementById("add-btn").style.display = "block"))
: ((document.getElementById("exampleModalLabel").innerHTML =
"List Customer"),
(document
.getElementById("showModal")
.querySelector(".modal-footer").style.display = "none"));
}),
// document
// .getElementById("showModal")
// .addEventListener("show.bs.modal", function (e) {
// e.relatedTarget.classList.contains("edit-item-btn")
// ? ((document.getElementById("exampleModalLabel").innerHTML =
// "Edit Customer"),
// (document
// .getElementById("showModal")
// .querySelector(".modal-footer").style.display = "block"),
// (document.getElementById("add-btn").style.display = "none"),
// (document.getElementById("edit-btn").style.display = "block"))
// : e.relatedTarget.classList.contains("add-btn")
// ? ((document.getElementById("exampleModalLabel").innerHTML =
// "Tambah Data Lahan"),
// (document
// .getElementById("showModal")
// .querySelector(".modal-footer").style.display = "block"),
// (document.getElementById("edit-btn").style.display = "none"),
// (document.getElementById("add-btn").style.display = "block"))
// : ((document.getElementById("exampleModalLabel").innerHTML =
// "List Customer"),
// (document
// .getElementById("showModal")
// .querySelector(".modal-footer").style.display = "none"));
// }),
ischeckboxcheck(),
document
.getElementById("showModal")