Fix rate form
This commit is contained in:
parent
77a80b54c7
commit
46bcb0cf28
@ -8,7 +8,7 @@ function updateRateForm() {
|
||||
$("#itemweight").css("display", "none");
|
||||
$("#itemsize").css("display", "none");
|
||||
$("#itemweightlbs").css("display", "");
|
||||
switch ($(this).val()) {
|
||||
switch ($("#itemType").val()) {
|
||||
case "Card":
|
||||
$("#itemweight").css("display", "none");
|
||||
$("#weightLbs").val("0");
|
||||
@ -30,7 +30,17 @@ function updateRateForm() {
|
||||
case "RegionalRateBoxB":
|
||||
$("#itemweight").css("display", "");
|
||||
break;
|
||||
case "Pak":
|
||||
case "Tube":
|
||||
case "SmallExpressBox":
|
||||
case "MediumExpressBox":
|
||||
case "LargeExpressBox":
|
||||
$("#itemweight").css("display", "");
|
||||
break;
|
||||
default:
|
||||
if ($("#itemType").val().startsWith("UPS") || $("#itemType").val().startsWith("FedEx")) {
|
||||
$("#itemweight").css("display", "");
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user