mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-27 12:50:09 +00:00
Use JavaScript to do refresh for both static and cgi versions.
This commit is contained in:
parent
9b98311b1a
commit
b043818d12
@ -153,10 +153,7 @@ sub do_tinderbox {
|
||||
}
|
||||
|
||||
sub print_page_head {
|
||||
|
||||
print "Content-type: text/html",
|
||||
($nowdate eq $maxdate ? "\nRefresh: 900" : ''),
|
||||
"\n\n<HTML>\n" unless $form{static};
|
||||
print "Content-type: text/html\n\n<HTML>\n" unless $form{static};
|
||||
|
||||
# Get the message of the day only on the first pageful
|
||||
do "$tree/mod.pl" if $nowdate eq $maxdate;
|
||||
@ -578,6 +575,9 @@ __ENDJS
|
||||
}
|
||||
print "buildtree = '$form{tree}';\n";
|
||||
|
||||
# Use JavaScript to refresh the page every 15 minutes
|
||||
print "setTimeout('location.reload()',900000);\n" if $nowdate eq $maxdate;
|
||||
|
||||
($script = <<'__ENDJS') =~ s/^ //gm;
|
||||
</script>
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user