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