This commit is contained in:
Nathan Coad
2016-06-03 11:44:45 +10:00
parent c1d4164f81
commit ae79dbbc51

View File

@@ -447,8 +447,6 @@ function booking_manual_email_form($form, &$form_state, $input_option = "")
'#default_value' => $values, '#default_value' => $values,
'#empty' => t('No attendees found.'), '#empty' => t('No attendees found.'),
'#attributes' => array('id' => 'sort-table'), '#attributes' => array('id' => 'sort-table'),
'#prefix' => '<div id="manual-email-attendees-items">',
'#suffix' => '</div>',
); );
//watchdog('booking_debug', "<pre>Manual email form default values\n@info</pre>", array('@info' => print_r( $values, true))); //watchdog('booking_debug', "<pre>Manual email form default values\n@info</pre>", array('@info' => print_r( $values, true)));
//watchdog('booking_debug', "<pre>Manual email form table\n@info</pre>", array('@info' => print_r( $form['table'], true))); //watchdog('booking_debug', "<pre>Manual email form table\n@info</pre>", array('@info' => print_r( $form['table'], true)));
@@ -510,9 +508,9 @@ function _booking_email_get_default_selection_callback($form, $form_state) {
ajax_command_replace("#booking_email_default_ids_wrapper", $output_html), ajax_command_replace("#booking_email_default_ids_wrapper", $output_html),
// This will call the command bookingEmailIDs in our custom JS file. // This will call the command bookingEmailIDs in our custom JS file.
array('command' => 'bookingAjaxCheckboxes', array('command' => 'bookingAjaxCheckboxes',
'formDataElement' => 'booking_email_default_ids', 'formDataElement' => 'booking_email_default_ids', //name of the hidden form element that contains the json data
'formName' => 'booking_manual_email_form', 'formName' => 'booking-manual-email-form', //note the dashes instead of underscores!
'checkboxName' => 'table', 'checkboxName' => 'table', //form element for tableselect
), ),
) )
); );