From: Steve Sutton Date: Mon, 30 Jun 2014 18:15:56 +0000 (-0400) Subject: hotfix for service form X-Git-Tag: v1.0.1^2 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=1a4dd719a4d5ae36b19962c89c382848d689afdd;p=web%2FCedarvilleMarine.git hotfix for service form fixing the markup for the radio buttons fix javascript --- diff --git a/Toolkit/Contacts/ServiceRequest.php b/Toolkit/Contacts/ServiceRequest.php index 1dbfd8a..8de0d08 100755 --- a/Toolkit/Contacts/ServiceRequest.php +++ b/Toolkit/Contacts/ServiceRequest.php @@ -283,8 +283,7 @@ class Toolkit_Contacts_ServiceRequest 'name' => 'service_request', 'display' => '', 'opts' => 'Yes', - 'att' => 'Yes', - 'val' => array(0, 1) + 'att' => 'Yes' ); $e[] = array( 'type' => 'text', @@ -298,8 +297,7 @@ class Toolkit_Contacts_ServiceRequest 'name' => 'service_request', 'display' => '', 'opts' => 'No', - 'att' => 'No', - 'val' => array(0, 1) + 'att' => 'No' ); $e[] = array( 'type' => 'text', diff --git a/libjs/serviceRequestForm.js b/libjs/serviceRequestForm.js index 4d2e065..9397d98 100644 --- a/libjs/serviceRequestForm.js +++ b/libjs/serviceRequestForm.js @@ -14,7 +14,7 @@ function toggleGroups(serviceRequest){ $('input[name="delivery_date"]').prop('disabled', true); $('input[name="completion_date"]').prop('disabled', true); $('input[name="arrival_date"]').prop('disabled', false); - } else { + } else if (serviceRequest == 'No') { $('input[name="delivery_date"]').prop('disabled', false); $('input[name="completion_date"]').prop('disabled', false); $('input[name="arrival_date"]').prop('disabled', true);