Browse Source

Had to comment out disabled of amount as introduced with 956faaa279

* amount.val was saved because input was disabled
devel
Jonathan Rosenbaum 7 years ago
parent
commit
f471c24339
  1. 6
      js/transaction.js

6
js/transaction.js

@ -1137,7 +1137,7 @@ $(function() {
if (obj.volunteer && current_membership === true) {
if (remaining === ui.value && remaining !== 0 && ui.value !== 0) {
if ( typeof amount.val() !== 'undefined') {
price = amount.cleanVal();
var price = amount.cleanVal();
volunteer_hours_to_membership_discount(price);
}
}
@ -1183,7 +1183,7 @@ $(function() {
if (obj.volunteer && current_membership === true) {
if (remaining === Number(val) && remaining !== 0 && Number(val) !== 0) {
if ( typeof amount.val() !== 'undefined') {
price = amount.cleanVal();
var price = amount.cleanVal();
volunteer_hours_to_membership_discount(price);
}
}
@ -1244,7 +1244,7 @@ $(function() {
$("#membership_discount").text("Member pays $" + discount_price).show();
$("#membership_discount_price").text(discount_price);
$("#redeemable_hours").spinner("disable");
amount.prop("disabled","disabled");
//amount.prop("disabled","disabled");
} else {
$("#membership_discount").empty();
$("#membership_discount_price").empty();

Loading…
Cancel
Save