Revision c818edc9
Added by Stephen Beaver over 9 years ago
src/usr/local/www/diag_reboot.php | ||
---|---|---|
94 | 94 |
//<![CDATA[ |
95 | 95 |
events.push(function() { |
96 | 96 |
|
97 |
var timeoutmsg = '<h4><?=sprintf(gettext("Rebooting%sPage will automatically reload in %s seconds"), "<br />", "<span id=\"secs\"></span>");?></h4>'; |
|
98 | 97 |
var time = 0; |
99 | 98 |
|
100 | 99 |
function checkonline() { |
... | ... | |
110 | 109 |
function startCountdown() { |
111 | 110 |
setInterval(function() { |
112 | 111 |
if (time == "<?=$guitimeout?>") { |
113 |
$('#countdown').html(timeoutmsg);
|
|
112 |
$('#countdown').html('<h4><?=sprintf(gettext("Rebooting%sPage will automatically reload in %s seconds"), "<br />", "<span id=\"secs\"></span>");?></h4>');
|
|
114 | 113 |
} |
115 | 114 |
|
116 | 115 |
if (time > 0) { |
Also available in: Unified diff
Further refinement to timeout message