[icinga-checkins] icinga.org: icinga-core/test/cgis: classic-ui: change javascript page refresh method again.

git at icinga.org git at icinga.org
Tue Apr 3 09:26:31 CEST 2012


Module: icinga-core
Branch: test/cgis
Commit: 398d62fa27e7b0417a0f2b76caf1c98b49ec0cd5
URL:    https://git.icinga.org/?p=icinga-core.git;a=commit;h=398d62fa27e7b0417a0f2b76caf1c98b49ec0cd5

Author: Ricardo Bartels <ricardo at bitchbrothers.com>
Date:   Sun Mar 18 11:34:25 2012 +0100

classic-ui: change javascript page refresh method again.

hope this works persintent in all browser implementations now.
damn IE

---

 cgi/cgiutils.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/cgi/cgiutils.c b/cgi/cgiutils.c
index a08c18e..f77233a 100644
--- a/cgi/cgiutils.c
+++ b/cgi/cgiutils.c
@@ -1101,7 +1101,8 @@ void document_header(int cgi_id, int use_stylesheet, char *cgi_title) {
 		printf("\ts = (counter_seconds != 1) ? 's':'' ;\n");
 		printf("\tif (counter_seconds<=0) {\n");
 		printf("\t\tupdate_text('refresh_text','- Updating now');\n");
-		printf("\t\twindow.location.reload(false);\n");
+		printf("\t\twindow.location.href=window.location.href;\n");
+		printf("\t\treturn false;\n");
 		printf("\t} else\n");
 		printf("\t\tupdate_text('refresh_text','- Update in '+counter_seconds+' second'+s);\n");
 		printf("\tcounter_seconds--;\n");





More information about the icinga-checkins mailing list