This commit is contained in:
Dwi Swandhana
2026-07-19 20:57:33 +07:00
parent 30e39875c0
commit 7febb03b5d
3 changed files with 46 additions and 29 deletions
@@ -258,11 +258,16 @@
@if(Session::get('id') !== null)
@push('script')
<script type="text/javascript">
(function () {
var refreshUrl = "{{ route('criticalValueNotificationSummary') }}";
var refreshIntervalMs = 20000;
var inFlight = null;
<script type="text/javascript">
(function () {
if (window.criticalValueNotificationBellInitialized) {
return;
}
window.criticalValueNotificationBellInitialized = true;
var refreshUrl = "{{ route('criticalValueNotificationSummary') }}";
var refreshIntervalMs = 20000;
var inFlight = null;
function setBadge(count) {
var $badge = $('#notificationcount');
@@ -290,13 +295,13 @@
});
}
$(function () {
setBadge(parseInt($('#notificationcount').text(), 10) || 0);
refreshCriticalBell();
setInterval(refreshCriticalBell, refreshIntervalMs);
$('#notification-bell-icon').closest('.dropdown').on('shown.bs.dropdown', refreshCriticalBell);
});
})();
</script>
$(function () {
setBadge(parseInt($('#notificationcount').text(), 10) || 0);
refreshCriticalBell();
window.criticalValueNotificationBellTimer = setInterval(refreshCriticalBell, refreshIntervalMs);
$('#notification-bell-icon').closest('.dropdown').off('shown.bs.dropdown.critical-bell').on('shown.bs.dropdown.critical-bell', refreshCriticalBell);
});
})();
</script>
@endpush
@endif
+14 -8
View File
@@ -5754,14 +5754,20 @@
}
timer = setInterval(showRemaining, 1000);
}
$(function() {
CKEDITOR.env.isCompatible = true;
CKEDITOR.replace( 'keterangan');
CKEDITOR.replace( 'lsg_ditemukanmorfologi');
CKEDITOR.replace( 'lsg_pewarnaanlain');
CKEDITOR.replace( 'viralload');
CKEDITOR.replace( 'iggigm_interpretasi');
CKEDITOR.replace( 'addendumketerangan');
$(function() {
CKEDITOR.env.isCompatible = true;
function ensureCkeditorInstance(id) {
if (document.getElementById(id) && !CKEDITOR.instances[id]) {
CKEDITOR.replace(id);
}
}
ensureCkeditorInstance('keterangan');
ensureCkeditorInstance('lsg_ditemukanmorfologi');
ensureCkeditorInstance('lsg_pewarnaanlain');
ensureCkeditorInstance('viralload');
ensureCkeditorInstance('iggigm_interpretasi');
ensureCkeditorInstance('addendumketerangan');
$("#mulai").datepicker({format: 'yyyy-mm-dd', autoclose: true});
$("#akhir").datepicker({format: 'yyyy-mm-dd', autoclose: true});
$("#id_tanggalpengambilancontohuji").datepicker({format: 'yyyy-mm-dd', autoclose: true});
@@ -5793,14 +5793,20 @@
}
timer = setInterval(showRemaining, 1000);
}
$(function() {
CKEDITOR.env.isCompatible = true;
CKEDITOR.replace( 'keterangan');
CKEDITOR.replace( 'lsg_ditemukanmorfologi');
CKEDITOR.replace( 'lsg_pewarnaanlain');
CKEDITOR.replace( 'viralload');
CKEDITOR.replace( 'iggigm_interpretasi');
CKEDITOR.replace( 'addendumketerangan');
$(function() {
CKEDITOR.env.isCompatible = true;
function ensureCkeditorInstance(id) {
if (document.getElementById(id) && !CKEDITOR.instances[id]) {
CKEDITOR.replace(id);
}
}
ensureCkeditorInstance('keterangan');
ensureCkeditorInstance('lsg_ditemukanmorfologi');
ensureCkeditorInstance('lsg_pewarnaanlain');
ensureCkeditorInstance('viralload');
ensureCkeditorInstance('iggigm_interpretasi');
ensureCkeditorInstance('addendumketerangan');
$("#mulai").datepicker({format: 'yyyy-mm-dd', autoclose: true});
$("#akhir").datepicker({format: 'yyyy-mm-dd', autoclose: true});
$("#id_tanggalpengambilancontohuji").datepicker({format: 'yyyy-mm-dd', autoclose: true});