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