diff options
author | Christopher Burger <burgerc@freeside.biz> | 2019-04-28 19:14:49 -0400 |
---|---|---|
committer | Christopher Burger <burgerc@freeside.biz> | 2019-04-28 19:14:49 -0400 |
commit | c15c4b8b1afa91049915f77503487e663554938b (patch) | |
tree | d51830d50989fbc76f563ecea77a4dc09a88de41 /httemplate/misc | |
parent | 91e2bc5f8559642e33090484daede730e32a5391 (diff) |
RT# 83204 - added link to service or tower causing error.
Diffstat (limited to 'httemplate/misc')
-rw-r--r-- | httemplate/misc/progress-popup.html | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/httemplate/misc/progress-popup.html b/httemplate/misc/progress-popup.html index 9964bcc02..a0aa6f5d9 100644 --- a/httemplate/misc/progress-popup.html +++ b/httemplate/misc/progress-popup.html @@ -73,7 +73,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>'; @@ -126,5 +132,6 @@ 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'); +my $reload_with_error = $cgi->param('reload_with_error'); </%init> |