diff options
author | Mark Wells <mark@freeside.biz> | 2016-09-08 15:16:51 -0700 |
---|---|---|
committer | Mark Wells <mark@freeside.biz> | 2016-09-08 15:16:51 -0700 |
commit | fc6b09e0585fd50f4d31f8de75f891b4bfece178 (patch) | |
tree | 879f697f7f2cf7f416470831fe57c8545673200c /httemplate/elements | |
parent | 162097d4e2bd08efd71d998406c14cbfeb108d0b (diff) |
prevent reload loops on process pages, #71249
Diffstat (limited to 'httemplate/elements')
-rw-r--r-- | httemplate/elements/header-full.html | 2 | ||||
-rw-r--r-- | httemplate/elements/header-popup.html | 1 | ||||
-rw-r--r-- | httemplate/elements/topreload.js | 5 |
3 files changed, 7 insertions, 1 deletions
diff --git a/httemplate/elements/header-full.html b/httemplate/elements/header-full.html index 672624a75..fe02650f1 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 7ddb53ce4..327673bc6 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(); + } +} |