projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
first pass at sales reports per agent and package class
[freeside.git]
/
httemplate
/
elements
/
xmlhttp.html
diff --git
a/httemplate/elements/xmlhttp.html
b/httemplate/elements/xmlhttp.html
index
cf277fe
..
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;
@@
-78,7
+79,7
@@
a[a.length-1](data);
if ( data.indexOf("<b>System error</b>") > -1 ) {
var w;
a[a.length-1](data);
if ( data.indexOf("<b>System error</b>") > -1 ) {
var w;
- if ( w = window.open("about:blank") )
}
+ if ( w = window.open("about:blank") )
{
w.document.write(data);
} else {
// popup blocking? should use an overlib popup instead
w.document.write(data);
} else {
// popup blocking? should use an overlib popup instead