X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fedit%2Fquick-charge.html;h=1ff70009c12f79f95b98be86d74d6fb22036566b;hb=55daa3803103f841d0fb2b559040115908724da8;hp=dfaf404fac3eb555e60b692125d0bdac9ce0f23c;hpb=f92a083465019a7224d912cd78b6881f8aef1b52;p=freeside.git diff --git a/httemplate/edit/quick-charge.html b/httemplate/edit/quick-charge.html index dfaf404fa..1ff70009c 100644 --- a/httemplate/edit/quick-charge.html +++ b/httemplate/edit/quick-charge.html @@ -1,5 +1,5 @@ <& /elements/header-popup.html, mt('One-time charge'), '', - ( $cgi->param('error') ? '' : 'onload="addRow()"' ), + ( ($quotationnum || $cgi->param('error')) ? '' : 'onload="addRow()"' ), &> @@ -15,9 +15,9 @@ function enable_quick_charge (e) { if ( document.QuickChargeForm.amount.value && document.QuickChargeForm.pkg.value ) { - document.QuickChargeForm.submit.disabled = false; + document.QuickChargeForm.submitButton.disabled = false; } else { - document.QuickChargeForm.submit.disabled = true; + document.QuickChargeForm.submitButton.disabled = true; } % if ( $curuser->option('disable_enter_submit_onetimecharge') ) { @@ -97,7 +97,7 @@ function bill_now_changed (what) { NAME = "QuickChargeForm" ID = "QuickChargeForm" METHOD = "POST" - onSubmit = "document.QuickChargeForm.submit.disabled=true; return validate_quick_charge();" + onSubmit = "document.QuickChargeForm.submitButton.disabled=true; return validate_quick_charge();" > @@ -106,7 +106,7 @@ function bill_now_changed (what) {
<% mt('Tax exempt') |h %> | +param('setuptax') ? 'CHECKED' : '' %>> | +
<% mt('Optional additional description (also printed on invoice):') |h %> | |
@@ -327,8 +351,9 @@ function bill_now_changed (what) { > |