From 1a4dd719a4d5ae36b19962c89c382848d689afdd Mon Sep 17 00:00:00 2001 From: Steve Sutton Date: Mon, 30 Jun 2014 14:15:56 -0400 Subject: [PATCH] hotfix for service form fixing the markup for the radio buttons fix javascript --- Toolkit/Contacts/ServiceRequest.php | 6 ++---- libjs/serviceRequestForm.js | 2 +- 2 files changed, 3 insertions(+), 5 deletions(-) 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); -- 2.17.1