mirror of
https://github.com/samba-team/samba.git
synced 2025-03-08 04:58:40 +03:00
moved the refresh script to the end of the page so that silly things
like a refresh of 0 actually work. (This used to be commit 4c04e1d2aea64ba0b53846c04235669eef0b28ca)
This commit is contained in:
parent
c8c61ac6a6
commit
78dd0fe448
@ -142,15 +142,6 @@ void status_page(void)
|
||||
printf("<input type=submit value=\"Stop Refreshing\" name=norefresh>\n");
|
||||
printf("<br>Refresh Interval: %d\n", refresh_interval);
|
||||
printf("<input type=hidden name=refresh value=1>\n");
|
||||
/* this little JavaScript allows for automatic refresh
|
||||
of the page. There are other methods but this seems
|
||||
to be the best alternative */
|
||||
printf("<script language=\"JavaScript\">\n");
|
||||
printf("<!--\nsetTimeout('window.location.replace(\"%s/status?refresh_interval=%d&refresh=1\")', %d)\n",
|
||||
cgi_baseurl(),
|
||||
refresh_interval,
|
||||
refresh_interval*1000);
|
||||
printf("//-->\n</script>\n");
|
||||
}
|
||||
|
||||
printf("<p>\n");
|
||||
@ -242,5 +233,17 @@ void status_page(void)
|
||||
fclose(f);
|
||||
|
||||
printf("</FORM>\n");
|
||||
|
||||
if (autorefresh) {
|
||||
/* this little JavaScript allows for automatic refresh
|
||||
of the page. There are other methods but this seems
|
||||
to be the best alternative */
|
||||
printf("<script language=\"JavaScript\">\n");
|
||||
printf("<!--\nsetTimeout('window.location.replace(\"%s/status?refresh_interval=%d&refresh=1\")', %d)\n",
|
||||
cgi_baseurl(),
|
||||
refresh_interval,
|
||||
refresh_interval*1000);
|
||||
printf("//-->\n</script>\n");
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user