Sha256: 3c82e7590fbeefc3408566d6832ccce5c4591ac6c77e9dbd4a224ba0eab223ac
Contents?: true
Size: 519 Bytes
Versions: 10
Compression:
Stored size: 519 Bytes
Contents
/* global Fae */ /** * Fae form checkbox * @namespace form.checkbox * @memberof form */ Fae.form.checkbox = { init: function() { this.setCheckboxAsActive(); }, /** * Run through the checkboxes and see if they are checked. apply js class for styling. */ setCheckboxAsActive: function() { $('.boolean label, .js-checkbox-wrapper label').each(function(){ var $this = $(this); if ($this.find(':checkbox:checked').length) { $this.addClass('active'); } }); } };
Version data entries
10 entries across 10 versions & 2 rubygems