give up on ajax selection of checkboxes

This commit is contained in:
2016-05-26 12:51:40 +10:00
parent dca0c2194d
commit 112a29a492

View File

@@ -36,6 +36,7 @@ function booking_manual_email()
'#options' => $email_options_array,
);
/*
$form['select-type'] = array(
'#type' => 'select',
'#title' => t('Pre-Select People'),
@@ -47,7 +48,7 @@ function booking_manual_email()
'event' => 'change',
),
);
*/
$header = array(
'booking_nid' => array('data' => t('Id'), 'field' => 'nid', 'sort' => 'asc'),
@@ -62,7 +63,7 @@ function booking_manual_email()
'welfare_required' => array('data' => t('Welfare Required?'), 'field' => 'booking_welfare_required'),
'travel_form' => array('data' => t('Travel Submitted?'), 'field' => 'tid'),
);
/*
if (variable_get('booking_enable_studygroups', 0) == 1)
{
//select entries from the study groups mapping table
@@ -119,15 +120,15 @@ function booking_manual_email()
$options[$data->nid]['group_roles'] = $group_text;
}
$values[$data->nid] = ($data->booking_payment_complete == 'Y' || $data->booking_status != 1) ? FALSE : TRUE;
//$values[$data->nid] = ($data->booking_payment_complete == 'Y' || $data->booking_status != 1) ? FALSE : TRUE;
}
*/
$form['table'] = array (
'#type' => 'tableselect',
'#multiple' => TRUE,
'#header' => $header,
'#options' => _booking_manual_email_generate_options(),
'#default_value' => array("1812" => TRUE, "1813" => FALSE),
'#options' => $options,
//'#default_value' => array("1812" => TRUE, "1813" => FALSE),
'#empty' => t('No attendees found.'),
'#attributes' => array('id' => 'sort-table'),
'#prefix' => '<div id="manual-email-attendees-items">',