js fix
This commit is contained in:
@@ -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");
|
||||
}
|
||||
});
|
||||
|
Reference in New Issue
Block a user