Merge pull request #383 from engelsystem/dashboard-ajax

[Dashboard] replace window reload with jquery ajax load
This commit is contained in:
msquare 2017-12-13 16:40:17 +01:00 committed by GitHub
commit 4277906768
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -24,8 +24,8 @@ function public_dashboard_view($stats, $free_shifts)
stats(_('Angels needed for nightshifts'), $stats['needed-night']),
stats(_('Angels currently working'), $stats['angels-working'], 'default'),
stats(_('Hours to be worked'), $stats['hours-to-work'], 'default'),
'<script>$(function(){setTimeout(function(){window.location.reload();}, 60000)})</script>'
]),
'<script>$(function(){setTimeout(function(){$(\'#statistics\').load(window.location.href + \' #statistics\');}, 60000)})</script>'
], 'statistics'),
$needed_angels
]);
}