This commit is contained in:
Dwi Swandhana
2026-07-19 21:32:48 +07:00
parent 335355a5ba
commit 8a233d6c1b
@@ -4982,30 +4982,32 @@
] ]
}); });
} }
function openlamanekpertise(dlp, nofoto, idne){ function openlamanekpertise(dlp, nofoto, idne){
console.log('[openlamanekpertise] start', { console.log('[openlamanekpertise] start', {
inputDlp: dlp, inputDlp: dlp,
inputNofoto: nofoto, inputNofoto: nofoto,
inputIdne: idne, inputIdne: idne,
currentDlp: document.getElementById('dlp') ? document.getElementById('dlp').value : null, currentDlp: document.getElementById('dlp') ? document.getElementById('dlp').value : null,
currentNofotoValue: document.getElementById('nofoto') ? document.getElementById('nofoto').value : null, currentNofotoValue: document.getElementById('nofoto') ? document.getElementById('nofoto').value : null,
currentNofotoText: document.getElementById('nofoto') ? document.getElementById('nofoto').textContent : null, currentNofotoText: document.getElementById('nofoto') ? document.getElementById('nofoto').textContent : null,
currentPeriksaId: document.getElementById('periksa_id') ? document.getElementById('periksa_id').value : null currentPeriksaId: document.getElementById('periksa_id') ? document.getElementById('periksa_id').value : null
}); });
dlp = dlp || document.getElementById('dlp').value; dlp = dlp || document.getElementById('dlp').value;
nofoto = nofoto || document.getElementById('nofoto').value || document.getElementById('nofoto').textContent; nofoto = nofoto || document.getElementById('nofoto').value || document.getElementById('nofoto').textContent;
idne = idne || document.getElementById('periksa_id').value; idne = idne || document.getElementById('periksa_id').value;
console.log('[openlamanekpertise] resolved values', { console.log('[openlamanekpertise] resolved values', {
dlp: dlp, dlp: dlp,
nofoto: nofoto, nofoto: nofoto,
idne: idne idne: idne
}); });
$('#dlp').val(dlp); $('#dlp').val(dlp);
$('#nofoto').val(nofoto).html(nofoto); $('#nofoto').val(nofoto).html(nofoto);
$('#periksa_id').val(idne); $('#periksa_id').val(idne);
$('#template_jenis').val(dlp); $('#template_jenis').val(dlp);
$('#divawal').hide();
$('#divtemplate').hide(); $('#divtemplate').hide();
$('.templatejawaban').hide(); $('.templatejawaban').hide();
$('#divpreview').hide();
$('#masterdiv').show(); $('#masterdiv').show();
$('.setelahdipilihtemplate').show(); $('.setelahdipilihtemplate').show();
$('#id_bakterihitungkolselect').show(); $('#id_bakterihitungkolselect').show();
@@ -5018,15 +5020,15 @@
$('#id_bakterimediabapteks').hide(); $('#id_bakterimediabapteks').hide();
$('#vl_hasildiv1select').show(); $('#vl_hasildiv1select').show();
$('#vl_hasildiv1teks').hide(); $('#vl_hasildiv1teks').hide();
$('#vl_hasildiv2select').show(); $('#vl_hasildiv2select').show();
$('#vl_hasildiv2teks').hide(); $('#vl_hasildiv2teks').hide();
$('input[type="checkbox"]').prop('disabled', false); $('input[type="checkbox"]').prop('disabled', false);
console.log('[openlamanekpertise] ui toggled', { console.log('[openlamanekpertise] ui toggled', {
divtemplateVisible: $('#divtemplate').is(':visible'), divtemplateVisible: $('#divtemplate').is(':visible'),
masterdivVisible: $('#masterdiv').is(':visible'), masterdivVisible: $('#masterdiv').is(':visible'),
setelahdipilihtemplateVisibleCount: $('.setelahdipilihtemplate:visible').length setelahdipilihtemplateVisibleCount: $('.setelahdipilihtemplate:visible').length
}); });
console.log('Loading komponen jawaban for DLP: '+dlp+' | No.Foto: '+nofoto+' | ID Periksa: '+idne); console.log('Loading komponen jawaban for DLP: '+dlp+' | No.Foto: '+nofoto+' | ID Periksa: '+idne);
var form_data = new FormData(); var form_data = new FormData();
form_data.append('nofoto', nofoto); form_data.append('nofoto', nofoto);
form_data.append('ruangan', dlp); form_data.append('ruangan', dlp);
@@ -5865,15 +5867,15 @@
} }
timer = setInterval(showRemaining, 1000); timer = setInterval(showRemaining, 1000);
} }
$(function() { $(function() {
CKEDITOR.env.isCompatible = true; CKEDITOR.env.isCompatible = true;
function ensureCkeditorInstance(id) { function ensureCkeditorInstance(id) {
if (document.getElementById(id) && !CKEDITOR.instances[id]) { if (document.getElementById(id) && !CKEDITOR.instances[id]) {
CKEDITOR.replace(id); CKEDITOR.replace(id);
} }
} }
ensureCkeditorInstance('keterangan'); ensureCkeditorInstance('keterangan');
ensureCkeditorInstance('lsg_ditemukanmorfologi'); ensureCkeditorInstance('lsg_ditemukanmorfologi');
ensureCkeditorInstance('lsg_pewarnaanlain'); ensureCkeditorInstance('lsg_pewarnaanlain');
ensureCkeditorInstance('viralload'); ensureCkeditorInstance('viralload');