This commit is contained in:
Nathan Coad
2018-05-22 13:09:49 +10:00
parent 03e6b91b2d
commit 5720f3150f

View File

@@ -285,7 +285,11 @@ function booking_emails_custom_ajax_form($node, &$form_state) {
$emailtype = $form_state['input']['email-type']; $emailtype = $form_state['input']['email-type'];
$subject_value = $form_state['input']['booking_email_subjectline_custom']; $subject_value = $form_state['input']['booking_email_subjectline_custom'];
$body_value = $form_state['input']['booking_email_body_custom']['value']; $body_value = $form_state['input']['booking_email_body_custom']['value'];
$submit_button_disabled = FALSE;
// only enable the submit button if the email type is not the initial empty one
if ($form_state['input']['email-type'] !== 'NULL') {
$submit_button_disabled = FALSE;
}
} }
if(variable_get('booking_enable_html_mail', 0) == 1) { if(variable_get('booking_enable_html_mail', 0) == 1) {