From dea68878f4dd2a7cedb683b75da66f6de95696dd Mon Sep 17 00:00:00 2001 From: Albert Santoni Date: Thu, 3 Jul 2014 16:51:59 -0400 Subject: [PATCH] Fix for radio button disabling bug in Billing view --- airtime_mvc/application/views/scripts/billing/upgrade.phtml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/airtime_mvc/application/views/scripts/billing/upgrade.phtml b/airtime_mvc/application/views/scripts/billing/upgrade.phtml index 260eb45c4..bca897d99 100644 --- a/airtime_mvc/application/views/scripts/billing/upgrade.phtml +++ b/airtime_mvc/application/views/scripts/billing/upgrade.phtml @@ -16,9 +16,10 @@ var customerInEU = false; function validatePlan() { if ($("#newproductid-25").is(":checked")) { + $("#newproductbillingcycle-monthly").prop("checked", "true"); + //It's import that we switch the checked item first (because you can't disable a checked radio button in Chrome) $("#newproductbillingcycle-annually").prop("disabled", "true"); $("label[for='newproductbillingcycle-annually']").addClass("disabled"); - $("#newproductbillingcycle-monthly").prop("checked", "true"); } else { $("#newproductbillingcycle-annually").removeProp("disabled"); $("label[for='newproductbillingcycle-annually']").removeClass("disabled");