Fix selector when assigning marhun id value

This commit is contained in:
afiq.hamzah
2022-11-27 18:45:00 +08:00
parent 76d3ad449c
commit 43c15092dd
+2 -2
View File
@@ -578,7 +578,7 @@
function prepareModalUpdateCaptureEachMarhun(modalTitle, marhunId, fileId) {
let modal = document.querySelector('#modalpermarhunphoto-capture-update');
modal.querySelector('#marhun_id').value = loop;
modal.querySelector('#marhun_id').value = marhunId;
modal.querySelector('input[name="filemarhun_id"]').value = fileId;
modal.querySelector("h5.modal-title").innerHTML = modalTitle;
@@ -612,7 +612,7 @@
let fileName = $(value).data('filename');
let modal = document.querySelector('#modalpermarhunphoto-capture');
modal.querySelector('#marhun_id').value = loop;
modal.querySelector('#marhun_id').value = marhunId;
modal.querySelector('h5.modal-title').innerHTML = "Bil:" + loop + ", Id Marhun:" + marhunId + ", Marhun:" +
marhun;
modalOverallPhotoCapturePerMarhun.initiateTakeMarhunPhoto();