summaryrefslogtreecommitdiff
path: root/httemplate/elements/progress-popup.html
diff options
context:
space:
mode:
authormark <mark>2011-05-27 01:11:19 +0000
committermark <mark>2011-05-27 01:11:19 +0000
commitb080ab3e3ed12a6bdf1bd2b7e3799fe1336a3c47 (patch)
treed907b78775c9ae62db283ad47562e80ff3ab0ab0 /httemplate/elements/progress-popup.html
parent9c3cd0386047b568c7c4ad77c72815abfff10456 (diff)
invoice batch download fix, #11871
Diffstat (limited to 'httemplate/elements/progress-popup.html')
-rw-r--r--httemplate/elements/progress-popup.html4
1 files changed, 3 insertions, 1 deletions
diff --git a/httemplate/elements/progress-popup.html b/httemplate/elements/progress-popup.html
index a29210201..42e464115 100644
--- a/httemplate/elements/progress-popup.html
+++ b/httemplate/elements/progress-popup.html
@@ -2,6 +2,7 @@
% my $jobnum = $cgi->param('jobnum');
% my $url = $cgi->param('url');
% my $message = $cgi->param('message');
+% my $popup_url = $cgi->param('popup_url');
% my $formname = scalar($cgi->param('formname'));
%
@@ -64,11 +65,12 @@ function updateStatus( status_statustext ) {
% } elsif ( $url ) {
window.top.location.href = '<% $url %>';
+% } elsif ( $popup_url ) {
+ document.parentWindow.location.replace('<% $popup_url %>');
% } else {
alert('job done but no url or message specified');
% }
-
} else if ( status.indexOf('done') > -1 ) {
document.getElementById("progress_message").innerHTML = "Loading report";