update
This commit is contained in:
@@ -3,10 +3,16 @@
|
|||||||
-->
|
-->
|
||||||
@extends('dokter.ppdsdeveloper')
|
@extends('dokter.ppdsdeveloper')
|
||||||
|
|
||||||
@push('script')
|
@push('script')
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
$(function () {
|
$(function () {
|
||||||
var focusPeriksaId = @json((string) ($focusPeriksaId ?? ''));
|
if (window.mikroExpertiseAutoOpenInitialized) {
|
||||||
|
console.warn('[mikro-expertise] duplicate script initialization skipped');
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
window.mikroExpertiseAutoOpenInitialized = true;
|
||||||
|
|
||||||
|
var focusPeriksaId = @json((string) ($focusPeriksaId ?? ''));
|
||||||
var focusNoFoto = @json((string) ($focusNoFoto ?? ''));
|
var focusNoFoto = @json((string) ($focusNoFoto ?? ''));
|
||||||
var returnUrl = @json($expertiseReturnUrl ?? url('/'));
|
var returnUrl = @json($expertiseReturnUrl ?? url('/'));
|
||||||
var shouldOpenOnLoad = @json((bool) ($openExpertiseOnLoad ?? false));
|
var shouldOpenOnLoad = @json((bool) ($openExpertiseOnLoad ?? false));
|
||||||
@@ -161,6 +167,8 @@
|
|||||||
if (autoOpenAttempts >= maxAutoOpenAttempts) {
|
if (autoOpenAttempts >= maxAutoOpenAttempts) {
|
||||||
console.error('[mikro-expertise] openFocusedPeriksa:max attempts, showing divawal');
|
console.error('[mikro-expertise] openFocusedPeriksa:max attempts, showing divawal');
|
||||||
$('#divawal').show();
|
$('#divawal').show();
|
||||||
|
} else {
|
||||||
|
setTimeout(openFocusedPeriksa, 500);
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@@ -187,6 +195,8 @@
|
|||||||
if (autoOpenAttempts >= maxAutoOpenAttempts) {
|
if (autoOpenAttempts >= maxAutoOpenAttempts) {
|
||||||
console.error('[mikro-expertise] openFocusedPeriksa:max trigger attempts, showing divawal');
|
console.error('[mikro-expertise] openFocusedPeriksa:max trigger attempts, showing divawal');
|
||||||
$('#divawal').show();
|
$('#divawal').show();
|
||||||
|
} else {
|
||||||
|
setTimeout(openFocusedPeriksa, 500);
|
||||||
}
|
}
|
||||||
}, 150);
|
}, 150);
|
||||||
}
|
}
|
||||||
@@ -222,7 +232,12 @@
|
|||||||
requestFilteredLoad();
|
requestFilteredLoad();
|
||||||
});
|
});
|
||||||
|
|
||||||
$('#btnkembali2').off('click.mikro-expertise').on('click.mikro-expertise', function () {
|
setTimeout(function () {
|
||||||
|
console.log('[mikro-expertise] ready fallback load');
|
||||||
|
requestFilteredLoad();
|
||||||
|
}, 0);
|
||||||
|
|
||||||
|
$('#btnkembali2').off('click.mikro-expertise').on('click.mikro-expertise', function () {
|
||||||
window.location.href = returnUrl;
|
window.location.href = returnUrl;
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user