diff options
Diffstat (limited to 'httemplate/elements/cust_payby.html')
-rw-r--r-- | httemplate/elements/cust_payby.html | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/httemplate/elements/cust_payby.html b/httemplate/elements/cust_payby.html index 5e0f09d3f..c7d4549df 100644 --- a/httemplate/elements/cust_payby.html +++ b/httemplate/elements/cust_payby.html @@ -216,7 +216,7 @@ </TABLE> % } -% unless ( $opt{'html_only'} ) { +% unless ( $opt{'html_only'} || $payby_changed_init ) { <SCRIPT TYPE="text/javascript"> function payby_changed(what) { @@ -264,7 +264,11 @@ } </SCRIPT> +% $payby_changed_init = 1; % } +<%once> +my $payby_changed_init = 0; +</%once> <%init> my( %opt ) = @_; |