[freeside-commits] freeside/httemplate/view/cust_main one_time_charge_link.html, 1.2, 1.3
Ivan,,,
ivan at wavetail.420.am
Thu Sep 17 18:03:07 PDT 2009
Update of /home/cvs/cvsroot/freeside/httemplate/view/cust_main
In directory wavetail.420.am:/tmp/cvs-serv14053
Modified Files:
one_time_charge_link.html
Log Message:
fix one-time charge inadvertantly checking the "tax exempt" checkbox when the tax product popup is swapped in and out, RT#6095
Index: one_time_charge_link.html
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/view/cust_main/one_time_charge_link.html,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- one_time_charge_link.html 25 Jun 2009 01:22:54 -0000 1.2
+++ one_time_charge_link.html 18 Sep 2009 01:03:05 -0000 1.3
@@ -1,9 +1,11 @@
<SCRIPT TYPE="text/javascript">
function taxproductmagic(which) {
+
var str = '';
var elements = which.form.elements;
for (var i = 0; i<elements.length; i++) {
+
if (elements[i].name == 'taxproductnum'){
document.getElementById('taxproductnum').value = elements[i].value;
continue;
@@ -11,8 +13,21 @@
if (elements[i].name == 'taxproductnum_description'){
continue;
}
+
if (str.length){str += ';';}
- str += elements[i].name + '=' + escape(elements[i].value);
+
+ var value = '';
+ if ( elements[i].type == 'checkbox' || elements[i].type == 'radio' ) {
+ if ( elements[i].checked == true ) {
+ value = elements[i].value;
+ //} else {
+ // value = '';
+ }
+ } else {
+ value = elements[i].value;
+ }
+ str += elements[i].name + '=' + escape(value);
+
}
document.getElementById('charge_storage').value = str;
cClick();
More information about the freeside-commits
mailing list