(0000791)
|
user4
|
2008-09-10 16:23
|
|
============================================================
--- pf/html/user/content/templates/release.html 34728378d20da363ab27ac13a2ef4ad33e05934b
+++ pf/html/user/content/templates/release.html 9c73d9a0bd44ff52ec5b9bdcedb63813d03435ce
@@ -4,12 +4,7 @@ var waitTime=[% timer %];
<script language="javascript">
var destination_url="[% destination_url %]";
var waitTime=[% timer %];
-var action = function()
-{
- hidebar();
- [% js_action %]
- top.location.href=destination_url;
-}
+[% js_action %]
</script>
<title>[% txt_page_title %]</title>
</head>
@@ -35,7 +30,7 @@ var action = function()
</tr>
<tr>
<td align="center">
- <p align="center"><font face="Arial">
+ <p align="center" id="toReplace"><font face="Arial">
[% txt_message %]
</font>
</td>
============================================================
--- pf/lib/pf/web.pm 9298af7cdf512a50dc5927fe65142e86cd42f1e2
+++ pf/lib/pf/web.pm 05923d47cb11df30588f225b9cd3140ae3ef3163
@@ -49,7 +49,20 @@ sub generate_release_page {
txt_enabling => gettext("Enabling ..."),
};
if (isenabled($Config{'network'}{'vlan'})) {
- $vars->{js_action} = "window.alert('" . gettext("release: reopen browser") . "');";
+ $vars->{js_action} = "var action = function()
+{
+ hidebar();
+ var toReplace=document.getElementById('toReplace');
+ toReplace.innerHTML = '<font face=\"Arial\">" . gettext("release: reopen browser") . "</font>';
+}";
+ } else {
+ $vars->{js_action} = <<EOT;
+var action = function()
+{
+ hidebar();
+ top.location.href=destination_url;
+}
+EOT
}
if (-r "$install_dir/conf/templates/release.pl") {
open INCLUDE, "<$install_dir/conf/templates/release.pl"; |
|