X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Fmisc%2Fprogress-popup.html;fp=httemplate%2Fmisc%2Fprogress-popup.html;h=a0aa6f5d9feee36761e8a7b7596bd33d2a70bc62;hp=9964bcc023a1c242ede8c4d711bc86a77aba92d4;hb=c15c4b8b1afa91049915f77503487e663554938b;hpb=91e2bc5f8559642e33090484daede730e32a5391 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 = 'Error: ' + statustext + ''; @@ -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');