From d6047391feb3236374e16fd73240d9821d77fe06 Mon Sep 17 00:00:00 2001 From: ivan Date: Sun, 20 Feb 2005 08:44:40 +0000 Subject: use a javascript layer instead of a browser popup (popup blockers), really generalize the progressbar code to make it easy to use as a component --- httemplate/misc/progress.html | 88 ------------------------------------------- 1 file changed, 88 deletions(-) delete mode 100644 httemplate/misc/progress.html (limited to 'httemplate/misc/progress.html') diff --git a/httemplate/misc/progress.html b/httemplate/misc/progress.html deleted file mode 100644 index cbff08b7b..000000000 --- a/httemplate/misc/progress.html +++ /dev/null @@ -1,88 +0,0 @@ -<% - my( $jobnum ) = $cgi->param('jobnum'); - my( $url ) = $cgi->param('url'); - my $job = ''; - if ( $jobnum =~ /^(\d+)$/ ) { - $job = qsearchs('queue', { 'jobnum' => $jobnum } ); - } - if ( $job && $job->status ne 'failed' ) { -%> - - - - - Please wait... - - - - - - - - - -

Please wait... - - - -

- -
<%= $job->statustext %>% -

(progress of job #<%= $jobnum %>) - - - -<% - } elsif ( !$job ) { #handle job gone case : job sucessful - # so close popup, redirect parent window... - #eidiot("write success handler (jobnum $jobnum)"); -%> - - - - - Operation successful - - - - - - - - - - - -<% - } else { -%> - - - - Error - - - - - - -

Error: <%= $job ? $job->statustext : $jobnum %> -

- - - -<% } %> - - - -- cgit v1.2.1