summaryrefslogtreecommitdiff
path: root/httemplate/misc/progress-popup.html
diff options
context:
space:
mode:
Diffstat (limited to 'httemplate/misc/progress-popup.html')
-rw-r--r--httemplate/misc/progress-popup.html12
1 files changed, 9 insertions, 3 deletions
diff --git a/httemplate/misc/progress-popup.html b/httemplate/misc/progress-popup.html
index 8e2d6760b..f75a9c792 100644
--- a/httemplate/misc/progress-popup.html
+++ b/httemplate/misc/progress-popup.html
@@ -5,6 +5,7 @@
% my $popup_url = $cgi->param('popup_url');
% my $formname = scalar($cgi->param('formname'));
% my $error_url = $cgi->param('error_url');
+% my $reload_with_error = $cgi->param('reload_with_error');
%
<HTML>
@@ -86,7 +87,13 @@ function updateStatus( status_statustext ) {
% # 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\\';";
+% if ( $reload_with_error ) {
+ var encodedString = btoa(statustext);
+ parent.nd(1);
+ window.top.location.href = '<% $error_url."&error_link=" %>'+encodedString;
+% }
+%
+% $onClick = "window.top.location.href = \\'$error_url\\';";
% }
document.getElementById("progress_message").innerHTML = '<FONT SIZE="+1" COLOR="#FF0000">Error: ' + statustext + '</FONT>';
@@ -131,5 +138,4 @@ function updateStatus( status_statustext ) {
</TABLE>
</BODY>
-</HTML>
-
+</HTML> \ No newline at end of file