diff options
author | Ivan Kohler <ivan@freeside.biz> | 2013-08-25 16:23:24 -0700 |
---|---|---|
committer | Ivan Kohler <ivan@freeside.biz> | 2013-08-25 16:23:24 -0700 |
commit | b799e8a48e0ea4e192d51fc445c3bee14c55e687 (patch) | |
tree | 8999983af320ad173d75a3e1898e2c58bd71aedb /httemplate/elements/xmlhttp.html | |
parent | 48e4ae69f730dba65c2f1428e9b1c408824c6a45 (diff) |
continue sales person work: customer and package selection, commissions, reporting. RT#23402
Diffstat (limited to 'httemplate/elements/xmlhttp.html')
-rw-r--r-- | httemplate/elements/xmlhttp.html | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/httemplate/elements/xmlhttp.html b/httemplate/elements/xmlhttp.html index a9e65c790..2f4f0d555 100644 --- a/httemplate/elements/xmlhttp.html +++ b/httemplate/elements/xmlhttp.html @@ -14,17 +14,19 @@ Example: ); </%doc> +<%shared> +my %initialized = ();#won't work if component is "preloaded"... so don't do that +</%shared> <& /elements/rs_init_object.html &> <& /elements/init_overlib.html &> <SCRIPT TYPE="text/javascript"> % foreach my $func ( @{$opt{'subs'}} ) { % -% my $furl = $url; -% $furl =~ s/\"/\\\\\"/; #javascript escape -%#" -% - +% next if $initialized{$key.$func}++; +% +% my $furl = $url; +% $furl =~ s/\"/\\\\\"/; #javascript escape (fix gvim syntax: ") function <%$key%><%$func%>() { // count args; build URL |