mirror of
https://github.com/fspc/Yellow-Bike-Database.git
synced 2025-02-22 17:03:22 -05:00
Because #4 creates a special type of transaction, amount is disabled.
* enabled on sold_to.change
This commit is contained in:
parent
2e0568c107
commit
956faaa279
@ -855,6 +855,7 @@ $(function() {
|
|||||||
|
|
||||||
sold_to.change(function() {
|
sold_to.change(function() {
|
||||||
|
|
||||||
|
amount.prop("disabled","");
|
||||||
var membership_obj; //reuse this object
|
var membership_obj; //reuse this object
|
||||||
if (this.value !== "no_selection") {
|
if (this.value !== "no_selection") {
|
||||||
var expiration_date;
|
var expiration_date;
|
||||||
@ -1243,6 +1244,7 @@ $(function() {
|
|||||||
$("#membership_discount").text("Member pays $" + discount_price).show();
|
$("#membership_discount").text("Member pays $" + discount_price).show();
|
||||||
$("#membership_discount_price").text(discount_price);
|
$("#membership_discount_price").text(discount_price);
|
||||||
$("#redeemable_hours").spinner("disable");
|
$("#redeemable_hours").spinner("disable");
|
||||||
|
amount.prop("disabled","disabled");
|
||||||
} else {
|
} else {
|
||||||
$("#membership_discount").empty();
|
$("#membership_discount").empty();
|
||||||
$("#membership_discount_price").empty();
|
$("#membership_discount_price").empty();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user