This commit is contained in:
Nathan Coad
2018-05-22 13:06:56 +10:00
parent 75033a6735
commit ceeef4837c

View File

@@ -278,12 +278,14 @@ function booking_emails_custom_ajax_form($node, &$form_state) {
if (!isset($form_state['input']['email-type'])) {
$subject_value = "";
$body_value = "";
$submit_button_disabled = TRUE;
}
else {
watchdog('booking_debug', 'booking_emails_custom_ajax_form user has selected email type');
$emailtype = $form_state['input']['email-type'];
$subject_value = $form_state['input']['booking_email_subjectline_custom'];
$body_value = $form_state['input']['booking_email_body_custom']['value'];
$submit_button_disabled = FALSE;
}
if(variable_get('booking_enable_html_mail', 0) == 1) {
@@ -344,7 +346,7 @@ function booking_emails_custom_ajax_form($node, &$form_state) {
$form['submit'] = array(
'#type' => 'submit',
'#value' => t('Save'),
'#disabled' => TRUE,
'#disabled' => $submit_button_disabled,
);
return array (