summaryrefslogtreecommitdiff
path: root/httemplate/elements
diff options
context:
space:
mode:
authorMark Wells <mark@freeside.biz>2016-07-26 15:06:36 -0700
committerMark Wells <mark@freeside.biz>2016-07-27 17:10:12 -0700
commit76b22e66bf8e615def0a24cd8cda23c3949eae70 (patch)
tree0775b1eca354058e607c4eef77eb86962f223f0d /httemplate/elements
parent990d718978480aa02b0031a2ec6753e64975fd34 (diff)
prevent reload loops on process pages, #71249
Diffstat (limited to 'httemplate/elements')
-rw-r--r--httemplate/elements/header-full.html2
-rw-r--r--httemplate/elements/header-popup.html1
-rw-r--r--httemplate/elements/topreload.js5
3 files changed, 7 insertions, 1 deletions
diff --git a/httemplate/elements/header-full.html b/httemplate/elements/header-full.html
index 07595a539..850eaed8c 100644
--- a/httemplate/elements/header-full.html
+++ b/httemplate/elements/header-full.html
@@ -53,7 +53,7 @@ Example:
% }
<% include('init_overlib.html') |n %>
<% include('rs_init_object.html') |n %>
-
+ <script type="text/javascript" src="<% $fsurl %>elements/topreload.js"></script>
<% $head |n %>
%# announce our base path, and the Mason comp path of this page
diff --git a/httemplate/elements/header-popup.html b/httemplate/elements/header-popup.html
index 6c0f80b37..839a63676 100644
--- a/httemplate/elements/header-popup.html
+++ b/httemplate/elements/header-popup.html
@@ -34,6 +34,7 @@ Example:
<SCRIPT SRC="<% $fsurl %>elements/printtofit.js"></SCRIPT>
% }
% }
+ <SCRIPT SRC="<% $fsurl %>elements/topreload.js"></SCRIPT>
<% $head |n %>
</HEAD>
<BODY <% $etc |n %>>
diff --git a/httemplate/elements/topreload.js b/httemplate/elements/topreload.js
new file mode 100644
index 000000000..a66703b29
--- /dev/null
+++ b/httemplate/elements/topreload.js
@@ -0,0 +1,5 @@
+window.topreload = function() {
+ if (window != window.top) {
+ window.top.location.reload();
+ }
+}