Sha256: cdf5de9ac50196abf7a3485f8e2273ee7fbd97fba5b199ef8487d62b40bd99e5
Contents?: true
Size: 432 Bytes
Versions: 6
Compression:
Stored size: 432 Bytes
Contents
$ -> ($ 'fieldset.categories input[type=checkbox]:not(:checked)').attr 'disabled', true if ($ '.categories input:checked').length > 0 categoryCheckboxes = '.categories input[type=checkbox]' $(categoryCheckboxes).change -> if ($ this).is(':checked') ($ categoryCheckboxes + ':not(:checked)').attr 'disabled', true ($ this).removeAttr 'disabled' else ($ 'input[type=checkbox]').removeAttr 'disabled'
Version data entries
6 entries across 6 versions & 1 rubygems