fix stupidity

This commit is contained in:
Nathan Coad
2016-06-03 11:33:37 +10:00
parent fcfbb6c885
commit af1aaa7e81

View File

@@ -4,7 +4,7 @@
Drupal.ajax.prototype.commands.bookingAjaxCheckboxes = function(ajax, response, status) {
jQuery(function($) {
var arr = $.parseJSON($('input#booking_email_default_ids').val())
$('#booking-manual-email-form').find(':checkbox[name^="' . response.checkboxName .'"]').each(function () {
$('#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));
});