diff options
author | Mark Wells <mark@freeside.biz> | 2014-12-30 16:02:14 -0800 |
---|---|---|
committer | Mark Wells <mark@freeside.biz> | 2014-12-30 16:05:00 -0800 |
commit | f25c596ba479c7c5cebcfd4447bb0db9c70a1e06 (patch) | |
tree | 8d21cc106e6d088bb4a34e8f53a967a54ed214ec /httemplate/elements/progress-popup.html | |
parent | de5fa0a86c7ea64d699c68d3e39219b63e4614f8 (diff) |
import deployment zone census block list, #32625
Diffstat (limited to 'httemplate/elements/progress-popup.html')
-rw-r--r-- | httemplate/elements/progress-popup.html | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/httemplate/elements/progress-popup.html b/httemplate/elements/progress-popup.html index 2d273880c..a37cf24eb 100644 --- a/httemplate/elements/progress-popup.html +++ b/httemplate/elements/progress-popup.html @@ -4,6 +4,7 @@ % my $message = $cgi->param('message'); % my $popup_url = $cgi->param('popup_url'); % my $formname = scalar($cgi->param('formname')); +% my $error_url = $cgi->param('error_url'); % <HTML> @@ -62,7 +63,7 @@ function updateStatus( status_statustext ) { } % } -% } elsif ( $url ) { +% } elsif ( $url ) { parent.nd(1); window.top.location.href = '<% $url %>'; % } elsif ( $popup_url ) { @@ -81,9 +82,16 @@ function updateStatus( status_statustext ) { window.top.location.href = statustext.substr(8, statustext.length-18); } else if ( status.indexOf('error') > -1 ) { +% +% # default behavior: just close the popup +% my $onClick = 'parent.nd(1);'; +% if ( $error_url ) { # then on clicking to confirm, redirect somewhere +% $onClick = "window.top.location.href = \\'$error_url\\';"; +% } + document.getElementById("progress_message").innerHTML = '<FONT SIZE="+1" COLOR="#FF0000">Error: ' + statustext + '</FONT>'; document.getElementById("progress_bar").innerHTML = ''; - document.getElementById("progress_percent").innerHTML = '<INPUT TYPE="button" VALUE="OK" onClick="parent.nd(1);">'; + document.getElementById("progress_percent").innerHTML = '<INPUT TYPE="button" VALUE="OK" onClick="<% $onClick %>">'; document.getElementById("progress_jobnum").innerHTML = ''; if ( parent.document.<%$formname%>.submit.disabled == true ) { parent.document.<%$formname%>.submit.disabled=false; |