summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Burger <burgerc@freeside.biz>2018-05-15 14:53:38 -0400
committerChristopher Burger <burgerc@freeside.biz>2018-06-19 12:50:52 -0400
commitc6df39fee9ee1403743e60f86d2773808eeb119d (patch)
tree514960b549163b312e61b238f0b651249b239a20
parent79858b72262cccb76d6ec9804a28911c45de1239 (diff)
RT# 34134 - Fixed error with amount not being sent when field disabled.
-rw-r--r--httemplate/elements/tr-select-payment_options.html2
1 files changed, 2 insertions, 0 deletions
diff --git a/httemplate/elements/tr-select-payment_options.html b/httemplate/elements/tr-select-payment_options.html
index 15f92775a..a59963a91 100644
--- a/httemplate/elements/tr-select-payment_options.html
+++ b/httemplate/elements/tr-select-payment_options.html
@@ -91,6 +91,7 @@ Example:
document.getElementById('invoice_row').style.display = 'none';
document.getElementById('<% $opt{prefix} %>invoice').value = 'select';
document.getElementById('amount').value = amount.toFixed(2);
+ document.getElementById('amount').disabled = false;
if (document.getElementById('ajax_surcharge_cell')) {
document.getElementById('ajax_surcharge_cell').innerHTML = '<FONT SIZE="+1">A credit card surcharge of <% $money_char %>' + surcharge.toFixed(2) + ' is included in this payment</FONT>';
}
@@ -115,6 +116,7 @@ Example:
else {
document.getElementById('payment_amount_row').style.display = 'block';
document.getElementById('amount').value = amount.toFixed(2);
+ document.getElementById('amount').disabled = false;
if (document.getElementById('ajax_surcharge_cell')) {
document.getElementById('ajax_surcharge_cell').innerHTML = '<FONT SIZE="+1">A credit card surcharge of <% $money_char %>' + surcharge.toFixed(2) + ' is included in this payment</FONT>';
}