summaryrefslogtreecommitdiff
path: root/httemplate/elements/xmlhttp.html
diff options
context:
space:
mode:
authorIvan Kohler <ivan@freeside.biz>2013-08-25 16:23:17 -0700
committerIvan Kohler <ivan@freeside.biz>2013-08-25 16:23:17 -0700
commitc14b35ce12141287e201bba8489b202a1b34b38f (patch)
treed897217561389649f4b4777e480ab2e115668d54 /httemplate/elements/xmlhttp.html
parentd29b455cf176358089f98e2970beaab88195bc62 (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.html12
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