1
0
mirror of https://github.com/fspc/Yellow-Bike-Database.git synced 2025-02-22 17:03:22 -05:00

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.

This commit is contained in:
Jonathan Rosenbaum 2017-08-07 18:00:34 +00:00
parent 137cc27ca1
commit f040988854

View File

@ -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) {