Merge branch 'afiqhamzah-feat-add-capture-marhun-picture' into 'main'

Fix selector when assigning marhun id value

See merge request online-sistem1/lelong!304
This commit is contained in:
Nur Izzati Zulkifli
2022-11-27 13:54:39 +00:00
+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();