projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
5f15526
)
fix the progressbar bug with multiple progressbar forms on a page
author
ivan
<ivan>
Sat, 11 Mar 2006 05:21:20 +0000
(
05:21
+0000)
committer
ivan
<ivan>
Sat, 11 Mar 2006 05:21:20 +0000
(
05:21
+0000)
httemplate/elements/progress-init.html
patch
|
blob
|
history
httemplate/elements/xmlhttp.html
patch
|
blob
|
history
httemplate/misc/email_invoice_events.cgi
patch
|
blob
|
history
httemplate/misc/email_invoices.cgi
patch
|
blob
|
history
httemplate/misc/fax_invoice_events.cgi
patch
|
blob
|
history
httemplate/misc/fax_invoices.cgi
patch
|
blob
|
history
httemplate/misc/print_invoice_events.cgi
patch
|
blob
|
history
httemplate/misc/print_invoices.cgi
patch
|
blob
|
history
diff --git
a/httemplate/elements/progress-init.html
b/httemplate/elements/progress-init.html
index
ba9f6ed
..
efebe48
100644
(file)
--- a/
httemplate/elements/progress-init.html
+++ b/
httemplate/elements/progress-init.html
@@
-14,7
+14,8
@@
<%= include('/elements/xmlhttp.html',
'method' => 'POST',
'url' => $action,
<%= include('/elements/xmlhttp.html',
'method' => 'POST',
'url' => $action,
- 'subs' => [ $key.'start_job' ],
+ 'subs' => [ 'start_job' ],
+ 'key' => $key,
)
%>
<SCRIPT TYPE="text/javascript" SRC="../elements/overlibmws.js"></SCRIPT>
)
%>
<SCRIPT TYPE="text/javascript" SRC="../elements/overlibmws.js"></SCRIPT>
diff --git
a/httemplate/elements/xmlhttp.html
b/httemplate/elements/xmlhttp.html
index
28130e5
..
e034388
100644
(file)
--- a/
httemplate/elements/xmlhttp.html
+++ b/
httemplate/elements/xmlhttp.html
@@
-4,6
+4,7
@@
my $url = $opt{'url'};
my $method = exists($opt{'method'}) ? $opt{'method'} : 'GET';
#my @subs = @{ $opt{'subs'};
my $url = $opt{'url'};
my $method = exists($opt{'method'}) ? $opt{'method'} : 'GET';
#my @subs = @{ $opt{'subs'};
+ my $key = exists($opt{'key'}) ? $opt{'key'} : '';
$url .= ( ($url =~ /\?/) ? '&' : '?' )
if $method eq 'GET';
$url .= ( ($url =~ /\?/) ? '&' : '?' )
if $method eq 'GET';
@@
-38,10
+39,10
@@
%>
%>
- function <%=$func%>() {
+ function <%=$
key%><%=$
func%>() {
// count args; build URL
var url = "<%=$furl%>";
// count args; build URL
var url = "<%=$furl%>";
- var a = <%=$func%>.arguments;
+ var a = <%=$
key%><%=$
func%>.arguments;
var args;
var len;
var args;
var len;
diff --git
a/httemplate/misc/email_invoice_events.cgi
b/httemplate/misc/email_invoice_events.cgi
index
b5e66d5
..
3a39bcd
100644
(file)
--- a/
httemplate/misc/email_invoice_events.cgi
+++ b/
httemplate/misc/email_invoice_events.cgi
@@
-1,6
+1,3
@@
<%
<%
-
my $server = new FS::UI::Web::JSRPC 'FS::cust_bill_event::process_reemail', $cgi;
my $server = new FS::UI::Web::JSRPC 'FS::cust_bill_event::process_reemail', $cgi;
-$server->process;
-
-%>
+%><%= $server->process %>
diff --git
a/httemplate/misc/email_invoices.cgi
b/httemplate/misc/email_invoices.cgi
index
bd23126
..
490c42f
100644
(file)
--- a/
httemplate/misc/email_invoices.cgi
+++ b/
httemplate/misc/email_invoices.cgi
@@
-1,6
+1,3
@@
<%
<%
-
my $server = new FS::UI::Web::JSRPC 'FS::cust_bill::process_reemail', $cgi;
my $server = new FS::UI::Web::JSRPC 'FS::cust_bill::process_reemail', $cgi;
-$server->process;
-
-%>
+%><%= $server->process %>
diff --git
a/httemplate/misc/fax_invoice_events.cgi
b/httemplate/misc/fax_invoice_events.cgi
index
9a5e8aa
..
778c429
100644
(file)
--- a/
httemplate/misc/fax_invoice_events.cgi
+++ b/
httemplate/misc/fax_invoice_events.cgi
@@
-1,6
+1,3
@@
-<%
-
+<%
my $server = new FS::UI::Web::JSRPC 'FS::cust_bill_event::process_refax', $cgi;
my $server = new FS::UI::Web::JSRPC 'FS::cust_bill_event::process_refax', $cgi;
-$server->process;
-
-%>
+%><%= $server->process %>
diff --git
a/httemplate/misc/fax_invoices.cgi
b/httemplate/misc/fax_invoices.cgi
index
24bee7d
..
b323888
100644
(file)
--- a/
httemplate/misc/fax_invoices.cgi
+++ b/
httemplate/misc/fax_invoices.cgi
@@
-1,6
+1,3
@@
-<%
-
+<%
my $server = new FS::UI::Web::JSRPC 'FS::cust_bill::process_refax', $cgi;
my $server = new FS::UI::Web::JSRPC 'FS::cust_bill::process_refax', $cgi;
-$server->process;
-
-%>
+%><%= $server->process %>
diff --git
a/httemplate/misc/print_invoice_events.cgi
b/httemplate/misc/print_invoice_events.cgi
index
3cf4cf7
..
897c39e
100644
(file)
--- a/
httemplate/misc/print_invoice_events.cgi
+++ b/
httemplate/misc/print_invoice_events.cgi
@@
-1,6
+1,3
@@
<%
<%
-
-my $server = new FS::UI::Web::JSRPC 'FS::cust_bill_event::process_reprint', $cgi;
-$server->process;
-
-%>
+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
6d32eaa
..
2182620
100644
(file)
--- a/
httemplate/misc/print_invoices.cgi
+++ b/
httemplate/misc/print_invoices.cgi
@@
-1,6
+1,3
@@
-<%
-
+<%
my $server = new FS::UI::Web::JSRPC 'FS::cust_bill::process_reprint', $cgi;
my $server = new FS::UI::Web::JSRPC 'FS::cust_bill::process_reprint', $cgi;
-$server->process;
-
-%>
+%><%= $server->process %>