This commit is contained in:
Nathan Coad
2016-06-03 11:09:23 +10:00
parent bfc1e642ab
commit 1a519c1ee7

View File

@@ -5,6 +5,9 @@ Drupal.ajax.prototype.commands.bookingEmailIDs = function(ajax, response, statu
jQuery(function($) {
var arr = $.parseJSON($('input#booking_email_default_ids').val())
alert(arr.first()); // this will be executed after the ajax call
$('#booking-manual-email-form').find(':checkbox[name^="table"]').each(function () {
$(this).prop("checked", ($.inArray($(this).val(), arr) != -1));
});
alert(arr[0]);
});
}