This commit is contained in:
Nathan Coad
2016-06-03 11:33:01 +10:00
parent 59f30c70d7
commit fcfbb6c885
2 changed files with 3 additions and 3 deletions

View File

@@ -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));
});
});
});
}