fix
This commit is contained in:
@@ -510,7 +510,7 @@ function _booking_email_get_default_selection_callback($form, $form_state) {
|
||||
ajax_command_replace("#booking_email_default_ids_wrapper", $output_html),
|
||||
// This will call the command bookingEmailIDs in our custom JS file.
|
||||
array('command' => 'bookingAjaxCheckboxes',
|
||||
'formDataElement' => 'booking_email_default_ids'
|
||||
'formDataElement' => 'booking_email_default_ids',
|
||||
'formName' => 'booking_manual_email_form',
|
||||
'checkboxName' => 'table',
|
||||
),
|
||||
|
@@ -1,5 +1,5 @@
|
||||
/**
|
||||
* Special Effects AJAX framework command.
|
||||
* Drupal AJAX framework command.
|
||||
*/
|
||||
Drupal.ajax.prototype.commands.bookingAjaxCheckboxes = function(ajax, response, status) {
|
||||
jQuery(function($) {
|
||||
@@ -7,6 +7,6 @@ Drupal.ajax.prototype.commands.bookingAjaxCheckboxes = function(ajax, response,
|
||||
$('#booking-manual-email-form').find(':checkbox[name^="' . response.checkboxName .'"]').each(function () {
|
||||
//.prop() doesn't exist in Drupal's old version of jQuery so use .attr() instead
|
||||
$(this).attr("checked", ($.inArray($(this).val(), arr) != -1));
|
||||
});
|
||||
});
|
||||
});
|
||||
}
|
Reference in New Issue
Block a user