Sha256: c1b113c548ab3556016a3a8a3531b98736bc522184b43be5ba088bb69b9717e8
Contents?: true
Size: 433 Bytes
Versions: 53
Compression:
Stored size: 433 Bytes
Contents
$(() => { const $checkbox = $(".represent-user-group").find("input#user_group"); const $userGroupFields = $(".user-group-fields"); $checkbox.click(() => { const $select = $userGroupFields.find("select"); if (!$select.val()) { $userGroupFields.toggle(); } if ($userGroupFields.is(":visible")) { $checkbox.prop("checked", true); } else { $checkbox.prop("checked", false); } }); });
Version data entries
53 entries across 53 versions & 1 rubygems