summaryrefslogtreecommitdiff
path: root/httemplate/elements/order_pkg.js
diff options
context:
space:
mode:
authorivan <ivan>2011-10-24 01:16:06 +0000
committerivan <ivan>2011-10-24 01:16:06 +0000
commit0935d2f172064807c5a7fe3c15d1c477b3a2b482 (patch)
tree9558b62705e0f57d05bf97a2b842d8e61f9b725c /httemplate/elements/order_pkg.js
parent85a970bcccc914915b1013d5f401e2265ceaef52 (diff)
fix discounts not appearing for one-time charge packages, RT#13654
Diffstat (limited to 'httemplate/elements/order_pkg.js')
-rw-r--r--httemplate/elements/order_pkg.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/httemplate/elements/order_pkg.js b/httemplate/elements/order_pkg.js
index 2f53e3631..48073593a 100644
--- a/httemplate/elements/order_pkg.js
+++ b/httemplate/elements/order_pkg.js
@@ -8,8 +8,10 @@ function pkg_changed () {
if ( discountnum ) {
if ( form.pkgpart.options[form.pkgpart.selectedIndex].getAttribute('data-can_discount') == 1 ) {
form.discountnum.disabled = false;
+ discountnum_changed(form.discountnum);
} else {
form.discountnum.disabled = true;
+ discountnum_changed(form.discountnum);
}
}
@@ -29,6 +31,7 @@ function pkg_changed () {
} else {
form.submitButton.disabled = true;
if ( discountnum ) { form.discountnum.disabled = true; }
+ discountnum_changed(form.discountnum);
}
}