summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
authorgnomus <43684+gnomus@users.noreply.github.com>2017-12-13 14:43:17 +0100
committerGitHub <noreply@github.com>2017-12-13 14:43:17 +0100
commitc3d22ad51797ba58afa1c71e5423188b93c49d03 (patch)
tree687ee9f553a8f076478d7463f1b342d98c1f170b /includes
parent5278be1f0fb7dae6c4ad04935b93d97143a91bad (diff)
Replace window reload with jquery ajax load
Diffstat (limited to 'includes')
-rw-r--r--includes/view/PublicDashboard_view.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/includes/view/PublicDashboard_view.php b/includes/view/PublicDashboard_view.php
index 4a25d0bf..d1543229 100644
--- a/includes/view/PublicDashboard_view.php
+++ b/includes/view/PublicDashboard_view.php
@@ -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
]);
}
@@ -75,4 +75,4 @@ function public_dashborad_shift_render($shift)
])
]);
}
-?> \ No newline at end of file
+?>