summaryrefslogtreecommitdiff
path: root/httemplate
diff options
context:
space:
mode:
authorJonathan Prykop <jonathan@freeside.biz>2016-01-26 14:45:00 -0600
committerJonathan Prykop <jonathan@freeside.biz>2016-01-26 14:50:32 -0600
commit121ae7fbe668c076e11d54ae6f96dc81738c9fdf (patch)
treed225b430befb2686153b8f5e9773748492ad2107 /httemplate
parent5a78e56cf10aea5374cf86cf9b6f1d1f75fcbba5 (diff)
RT#38363: use cust_payby when saving cards during payments [minor fixes]
Diffstat (limited to 'httemplate')
-rw-r--r--httemplate/elements/cust_payby.html6
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 ) = @_;