From be17381d9acb30b74a2dbebc1ef48eabaaeda9f4 Mon Sep 17 00:00:00 2001 From: Stephen Beaver Date: Tue, 26 Jan 2016 08:29:57 -0500 Subject: Revise reload countdown for internaionalization --- src/usr/local/www/diag_reboot.php | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'src/usr/local') diff --git a/src/usr/local/www/diag_reboot.php b/src/usr/local/www/diag_reboot.php index b347d30..7faf6b2 100755 --- a/src/usr/local/www/diag_reboot.php +++ b/src/usr/local/www/diag_reboot.php @@ -94,7 +94,7 @@ if ($_SERVER['REQUEST_METHOD'] == 'POST') { //
'; + var timeoutmsg = '

", "");?>

'; var time = 0; function checkonline() { @@ -109,12 +109,17 @@ events.push(function() { function startCountdown() { setInterval(function() { + if (time == "") { + $('#countdown').html(timeoutmsg); + } + if (time > 0) { - $('#countdown').html(timeoutmsg + time + ' .'); + $('#secs').html(time); time--; } else { time = ""; - timeoutmsg = '


'; + $('#countdown').html('

", "");?>

'); + $('#secs').html(time); checkonline(); } }, 1000); -- cgit v1.1