From 48d2c4ad32b22df92d3af42f3f66bae229ea9de7 Mon Sep 17 00:00:00 2001 From: Nathan Coad Date: Fri, 3 Jun 2016 15:05:11 +1000 Subject: [PATCH] js fix --- booking.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/booking.js b/booking.js index 1503c49..6b3f1ec 100644 --- a/booking.js +++ b/booking.js @@ -7,10 +7,10 @@ Drupal.ajax.prototype.commands.bookingAjaxCheckboxes = function(ajax, response, $('#' + response.formName).find(':checkbox[name^="' + response.checkboxName + '"]').each(function () { //.prop() doesn't exist in Drupal's old version of jQuery so use .attr() instead if ($.inArray($(this).val(), arr) != -1) { - $(this).attr("checked", "true"); + $(this).attr("checked", true); $(this).closest('tr').addClass("selected"); } else { - $(this).attr("checked", "false"); + $(this).attr("checked", false); $(this).closest('tr').removeClass("selected"); } });