From: ivan Date: Fri, 10 Mar 2006 22:30:48 +0000 (+0000) Subject: fix to (hopefully) allow multiple progress-init's in a page, also add second $cgi... X-Git-Tag: BEFORE_FINAL_MASONIZE~198 X-Git-Url: http://git.freeside.biz/gitweb/?a=commitdiff_plain;h=5f155263a2c9837640d2fab0817d1f36b8cb3f8c;p=freeside.git fix to (hopefully) allow multiple progress-init's in a page, also add second $cgi arg to all these progressbar calls... --- diff --git a/httemplate/elements/progress-init.html b/httemplate/elements/progress-init.html index 7844f5678..ba9f6edd6 100644 --- a/httemplate/elements/progress-init.html +++ b/httemplate/elements/progress-init.html @@ -14,7 +14,7 @@ <%= include('/elements/xmlhttp.html', 'method' => 'POST', 'url' => $action, - 'subs' => [ 'start_job' ], + 'subs' => [ $key.'start_job' ], ) %> @@ -32,7 +32,7 @@ function <%=$key%>process () { document.<%=$formname%>.submit.disabled=true; - overlib( 'Submitting job to server...', WIDTH, 432, HEIGHT, 136, CAPTION, 'Please wait...', STICKY, AUTOSTATUSCAP, CLOSETEXT, '', CLOSECLICK, MIDX, 0, MIDY, 0 ); + overlib( 'Submitting job to server...', WIDTH, 444, HEIGHT, 168, CAPTION, 'Please wait...', STICKY, AUTOSTATUSCAP, CLOSETEXT, '', CLOSECLICK, MIDX, 0, MIDY, 0 ); var Hash = new Array(); var x = 0; @@ -68,13 +68,13 @@ function <%=$key%>process () { //alert('start_job( ' + Hash + ', <%=$key%>myCallback )' ); //alert('start_job()' ); - start_job( Hash, <%=$key%>myCallback ); + <%=$key%>start_job( Hash, <%=$key%>myCallback ); } function <%=$key%>myCallback( jobnum ) { - overlib( OLiframeContent('<%=$p%>elements/progress-popup.html?jobnum=' + jobnum + ';<%=$url_or_message_link%>;formname=<%=$formname%>' , 432, 136, 'progress_popup'), CAPTION, 'Please wait...', STICKY, AUTOSTATUSCAP, CLOSETEXT, '', CLOSECLICK, MIDX, 0, MIDY, 0 ); + overlib( OLiframeContent('<%=$p%>elements/progress-popup.html?jobnum=' + jobnum + ';<%=$url_or_message_link%>;formname=<%=$formname%>' , 444, 168, 'progress_popup'), CAPTION, 'Please wait...', STICKY, AUTOSTATUSCAP, CLOSETEXT, '', CLOSECLICK, MIDX, 0, MIDY, 0 ); } diff --git a/httemplate/misc/email_invoice_events.cgi b/httemplate/misc/email_invoice_events.cgi index 12d58d608..b5e66d5ac 100644 --- a/httemplate/misc/email_invoice_events.cgi +++ b/httemplate/misc/email_invoice_events.cgi @@ -1,6 +1,6 @@ <% -my $server = new FS::UI::Web::JSRPC 'FS::cust_bill_event::process_reemail'; +my $server = new FS::UI::Web::JSRPC 'FS::cust_bill_event::process_reemail', $cgi; $server->process; %> diff --git a/httemplate/misc/email_invoices.cgi b/httemplate/misc/email_invoices.cgi index 0a3978395..bd231261c 100644 --- a/httemplate/misc/email_invoices.cgi +++ b/httemplate/misc/email_invoices.cgi @@ -1,6 +1,6 @@ <% -my $server = new FS::UI::Web::JSRPC 'FS::cust_bill::process_reemail'; +my $server = new FS::UI::Web::JSRPC 'FS::cust_bill::process_reemail', $cgi; $server->process; %> diff --git a/httemplate/misc/fax_invoice_events.cgi b/httemplate/misc/fax_invoice_events.cgi index a8ded0550..9a5e8aaea 100644 --- a/httemplate/misc/fax_invoice_events.cgi +++ b/httemplate/misc/fax_invoice_events.cgi @@ -1,6 +1,6 @@ <% -my $server = new FS::UI::Web::JSRPC 'FS::cust_bill_event::process_refax'; +my $server = new FS::UI::Web::JSRPC 'FS::cust_bill_event::process_refax', $cgi; $server->process; %> diff --git a/httemplate/misc/fax_invoices.cgi b/httemplate/misc/fax_invoices.cgi index f16ba8b5e..24bee7da9 100644 --- a/httemplate/misc/fax_invoices.cgi +++ b/httemplate/misc/fax_invoices.cgi @@ -1,6 +1,6 @@ <% -my $server = new FS::UI::Web::JSRPC 'FS::cust_bill::process_refax'; +my $server = new FS::UI::Web::JSRPC 'FS::cust_bill::process_refax', $cgi; $server->process; %> diff --git a/httemplate/misc/print_invoice_events.cgi b/httemplate/misc/print_invoice_events.cgi index c6a7885a4..3cf4cf7c8 100644 --- a/httemplate/misc/print_invoice_events.cgi +++ b/httemplate/misc/print_invoice_events.cgi @@ -1,6 +1,6 @@ <% -my $server = new FS::UI::Web::JSRPC 'FS::cust_bill_event::process_reprint'; +my $server = new FS::UI::Web::JSRPC 'FS::cust_bill_event::process_reprint', $cgi; $server->process; %> diff --git a/httemplate/misc/print_invoices.cgi b/httemplate/misc/print_invoices.cgi index d7b271c37..6d32eaaac 100644 --- a/httemplate/misc/print_invoices.cgi +++ b/httemplate/misc/print_invoices.cgi @@ -1,6 +1,6 @@ <% -my $server = new FS::UI::Web::JSRPC 'FS::cust_bill::process_reprint'; +my $server = new FS::UI::Web::JSRPC 'FS::cust_bill::process_reprint', $cgi; $server->process; %>