Browse Source

This changes on to one which is a better strategy when it is only necessary for the handler to fire once and empty the results for the membership discount.

devel
Jonathan Rosenbaum 7 years ago
parent
commit
f040988854
  1. 4
      js/transaction.js

4
js/transaction.js

@ -829,7 +829,7 @@ $(function() {
var exp = obj.expiration_date;
expiration_date = new Date(exp.split("-").toString());
if (d >= expiration_date) {
amount.on("input", function () {
amount.one("input", function () {
$("#membership_discount").empty();
});
if ($("#expired_membership").length === 1) {
@ -862,7 +862,7 @@ $(function() {
}
}
} else {
amount.on("input", function () {
amount.one("input", function () {
$("#membership_discount").empty();
});
if ($("#paid_member").length === 1) {

Loading…
Cancel
Save