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:
parent
137cc27ca1
commit
f040988854
@ -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…
x
Reference in New Issue
Block a user