update
This commit is contained in:
@@ -258,11 +258,16 @@
|
|||||||
|
|
||||||
@if(Session::get('id') !== null)
|
@if(Session::get('id') !== null)
|
||||||
@push('script')
|
@push('script')
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
(function () {
|
(function () {
|
||||||
var refreshUrl = "{{ route('criticalValueNotificationSummary') }}";
|
if (window.criticalValueNotificationBellInitialized) {
|
||||||
var refreshIntervalMs = 20000;
|
return;
|
||||||
var inFlight = null;
|
}
|
||||||
|
window.criticalValueNotificationBellInitialized = true;
|
||||||
|
|
||||||
|
var refreshUrl = "{{ route('criticalValueNotificationSummary') }}";
|
||||||
|
var refreshIntervalMs = 20000;
|
||||||
|
var inFlight = null;
|
||||||
|
|
||||||
function setBadge(count) {
|
function setBadge(count) {
|
||||||
var $badge = $('#notificationcount');
|
var $badge = $('#notificationcount');
|
||||||
@@ -290,13 +295,13 @@
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
$(function () {
|
$(function () {
|
||||||
setBadge(parseInt($('#notificationcount').text(), 10) || 0);
|
setBadge(parseInt($('#notificationcount').text(), 10) || 0);
|
||||||
refreshCriticalBell();
|
refreshCriticalBell();
|
||||||
setInterval(refreshCriticalBell, refreshIntervalMs);
|
window.criticalValueNotificationBellTimer = setInterval(refreshCriticalBell, refreshIntervalMs);
|
||||||
$('#notification-bell-icon').closest('.dropdown').on('shown.bs.dropdown', refreshCriticalBell);
|
$('#notification-bell-icon').closest('.dropdown').off('shown.bs.dropdown.critical-bell').on('shown.bs.dropdown.critical-bell', refreshCriticalBell);
|
||||||
});
|
});
|
||||||
})();
|
})();
|
||||||
</script>
|
</script>
|
||||||
@endpush
|
@endpush
|
||||||
@endif
|
@endif
|
||||||
@@ -5754,14 +5754,20 @@
|
|||||||
}
|
}
|
||||||
timer = setInterval(showRemaining, 1000);
|
timer = setInterval(showRemaining, 1000);
|
||||||
}
|
}
|
||||||
$(function() {
|
$(function() {
|
||||||
CKEDITOR.env.isCompatible = true;
|
CKEDITOR.env.isCompatible = true;
|
||||||
CKEDITOR.replace( 'keterangan');
|
function ensureCkeditorInstance(id) {
|
||||||
CKEDITOR.replace( 'lsg_ditemukanmorfologi');
|
if (document.getElementById(id) && !CKEDITOR.instances[id]) {
|
||||||
CKEDITOR.replace( 'lsg_pewarnaanlain');
|
CKEDITOR.replace(id);
|
||||||
CKEDITOR.replace( 'viralload');
|
}
|
||||||
CKEDITOR.replace( 'iggigm_interpretasi');
|
}
|
||||||
CKEDITOR.replace( 'addendumketerangan');
|
|
||||||
|
ensureCkeditorInstance('keterangan');
|
||||||
|
ensureCkeditorInstance('lsg_ditemukanmorfologi');
|
||||||
|
ensureCkeditorInstance('lsg_pewarnaanlain');
|
||||||
|
ensureCkeditorInstance('viralload');
|
||||||
|
ensureCkeditorInstance('iggigm_interpretasi');
|
||||||
|
ensureCkeditorInstance('addendumketerangan');
|
||||||
$("#mulai").datepicker({format: 'yyyy-mm-dd', autoclose: true});
|
$("#mulai").datepicker({format: 'yyyy-mm-dd', autoclose: true});
|
||||||
$("#akhir").datepicker({format: 'yyyy-mm-dd', autoclose: true});
|
$("#akhir").datepicker({format: 'yyyy-mm-dd', autoclose: true});
|
||||||
$("#id_tanggalpengambilancontohuji").datepicker({format: 'yyyy-mm-dd', autoclose: true});
|
$("#id_tanggalpengambilancontohuji").datepicker({format: 'yyyy-mm-dd', autoclose: true});
|
||||||
|
|||||||
@@ -5793,14 +5793,20 @@
|
|||||||
}
|
}
|
||||||
timer = setInterval(showRemaining, 1000);
|
timer = setInterval(showRemaining, 1000);
|
||||||
}
|
}
|
||||||
$(function() {
|
$(function() {
|
||||||
CKEDITOR.env.isCompatible = true;
|
CKEDITOR.env.isCompatible = true;
|
||||||
CKEDITOR.replace( 'keterangan');
|
function ensureCkeditorInstance(id) {
|
||||||
CKEDITOR.replace( 'lsg_ditemukanmorfologi');
|
if (document.getElementById(id) && !CKEDITOR.instances[id]) {
|
||||||
CKEDITOR.replace( 'lsg_pewarnaanlain');
|
CKEDITOR.replace(id);
|
||||||
CKEDITOR.replace( 'viralload');
|
}
|
||||||
CKEDITOR.replace( 'iggigm_interpretasi');
|
}
|
||||||
CKEDITOR.replace( 'addendumketerangan');
|
|
||||||
|
ensureCkeditorInstance('keterangan');
|
||||||
|
ensureCkeditorInstance('lsg_ditemukanmorfologi');
|
||||||
|
ensureCkeditorInstance('lsg_pewarnaanlain');
|
||||||
|
ensureCkeditorInstance('viralload');
|
||||||
|
ensureCkeditorInstance('iggigm_interpretasi');
|
||||||
|
ensureCkeditorInstance('addendumketerangan');
|
||||||
$("#mulai").datepicker({format: 'yyyy-mm-dd', autoclose: true});
|
$("#mulai").datepicker({format: 'yyyy-mm-dd', autoclose: true});
|
||||||
$("#akhir").datepicker({format: 'yyyy-mm-dd', autoclose: true});
|
$("#akhir").datepicker({format: 'yyyy-mm-dd', autoclose: true});
|
||||||
$("#id_tanggalpengambilancontohuji").datepicker({format: 'yyyy-mm-dd', autoclose: true});
|
$("#id_tanggalpengambilancontohuji").datepicker({format: 'yyyy-mm-dd', autoclose: true});
|
||||||
|
|||||||
Reference in New Issue
Block a user