test more generic js function
This commit is contained in:
@@ -357,6 +357,11 @@ function booking_manual_email_form($form, &$form_state, $input_option = "")
|
||||
'wrapper' => 'booking_email_default_ids_wrapper',
|
||||
),
|
||||
);
|
||||
|
||||
$form['submit'] = array (
|
||||
'#type' => 'submit',
|
||||
'#value' => t('Send Email'),
|
||||
);
|
||||
|
||||
$header = array(
|
||||
'booking_nid' => array('data' => t('Id'), 'field' => 'nid', 'sort' => 'asc'),
|
||||
@@ -503,7 +508,12 @@ function _booking_email_get_default_selection_callback($form, $form_state) {
|
||||
'#type' => 'ajax',
|
||||
'#commands' => array(
|
||||
ajax_command_replace("#booking_email_default_ids_wrapper", $output_html),
|
||||
array('command' => 'bookingEmailIDs'), // This will call the command nameOfCommand we just created in the JS file.
|
||||
// This will call the command bookingEmailIDs in our custom JS file.
|
||||
array('command' => 'bookingAjaxCheckboxes',
|
||||
'formDataElement' => 'booking_email_default_ids'
|
||||
'formName' => 'booking_manual_email_form',
|
||||
'checkboxName' => 'table',
|
||||
),
|
||||
)
|
||||
);
|
||||
}
|
||||
|
Reference in New Issue
Block a user