From 7febb03b5d332e9047e0f83277758bdbebf1c875 Mon Sep 17 00:00:00 2001 From: Dwi Swandhana Date: Sun, 19 Jul 2026 20:57:33 +0700 Subject: [PATCH] update --- .../base/partials/header-plain.blade.php | 31 +++++++++++-------- htdocs/resources/views/dokter/ppds.blade.php | 22 ++++++++----- .../views/dokter/ppdsdeveloper.blade.php | 22 ++++++++----- 3 files changed, 46 insertions(+), 29 deletions(-) diff --git a/htdocs/resources/views/base/partials/header-plain.blade.php b/htdocs/resources/views/base/partials/header-plain.blade.php index c41c04db..2860a5b1 100644 --- a/htdocs/resources/views/base/partials/header-plain.blade.php +++ b/htdocs/resources/views/base/partials/header-plain.blade.php @@ -258,11 +258,16 @@ @if(Session::get('id') !== null) @push('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); + }); + })(); + @endpush @endif diff --git a/htdocs/resources/views/dokter/ppds.blade.php b/htdocs/resources/views/dokter/ppds.blade.php index e5aab435..c113fc1b 100644 --- a/htdocs/resources/views/dokter/ppds.blade.php +++ b/htdocs/resources/views/dokter/ppds.blade.php @@ -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}); diff --git a/htdocs/resources/views/dokter/ppdsdeveloper.blade.php b/htdocs/resources/views/dokter/ppdsdeveloper.blade.php index 2dcb33cf..48d729a0 100644 --- a/htdocs/resources/views/dokter/ppdsdeveloper.blade.php +++ b/htdocs/resources/views/dokter/ppdsdeveloper.blade.php @@ -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});