test
This commit is contained in:
@@ -254,6 +254,17 @@ function _booking_manual_email_selecttype_ajax_callback($form, &$form_state) {
|
|||||||
|
|
||||||
unset($form['table']);
|
unset($form['table']);
|
||||||
|
|
||||||
|
$form['table'] = array (
|
||||||
|
'#type' => 'tableselect',
|
||||||
|
'#header' => $header,
|
||||||
|
'#options' => $options,
|
||||||
|
'#default_value' => $new_default_values,
|
||||||
|
'#empty' => t('No attendees found.'),
|
||||||
|
'#attributes' => array('id' => 'sort-table'),
|
||||||
|
'#prefix' => '<div id="manual-email-attendees-items">',
|
||||||
|
'#suffix' => '</div>',
|
||||||
|
);
|
||||||
|
|
||||||
// update cached options for tableselect
|
// update cached options for tableselect
|
||||||
$cached_form = form_get_cache($form['#build_id'], $form_state);
|
$cached_form = form_get_cache($form['#build_id'], $form_state);
|
||||||
$cached_form['table']['#options'] = $options;
|
$cached_form['table']['#options'] = $options;
|
||||||
|
Reference in New Issue
Block a user