update
This commit is contained in:
No files matched your search
@@ -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
|
||||
Reference in New Issue
Block a user