From 8b31d1bebfc9f13b5016effad2292a805e8c796a Mon Sep 17 00:00:00 2001 From: Nathan Coad Date: Fri, 3 Jun 2016 11:14:11 +1000 Subject: [PATCH] js --- booking.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/booking.js b/booking.js index bcb1552..68a4d4b 100644 --- a/booking.js +++ b/booking.js @@ -6,7 +6,8 @@ Drupal.ajax.prototype.commands.bookingEmailIDs = function(ajax, response, statu jQuery(function($) { var arr = $.parseJSON($('input#booking_email_default_ids').val()) $('#booking-manual-email-form').find(':checkbox[name^="table"]').each(function () { - $(this).prop("checked", ($.inArray($(this).val(), arr) != -1)); + //.prop() doesn't exist in Drupal's old version of jQuery so use .attr() instead + $(this).attr("checked", ($.inArray($(this).val(), arr) != -1)); }); alert(arr[0]); });