{:uriI"file:///Library/WebServer/Documents/work/fine/_fae/app/assets/javascripts/fae/form/inputs/_checkbox.js?type=application/javascript&pipeline=self&id=fc7bb4df90c29da0bcd9375b5c2f27b4e80e33dac4f371efd9cbb0bac8b560d9:ET:load_pathI"G/Library/WebServer/Documents/work/fine/_fae/app/assets/javascripts;T: filenameI"d/Library/WebServer/Documents/work/fine/_fae/app/assets/javascripts/fae/form/inputs/_checkbox.js;T: nameI"fae/form/inputs/_checkbox;T:logical_pathI"&fae/form/inputs/_checkbox.self.js;T:content_typeI"application/javascript;T: sourceI"k/* global Fae */ /** * Fae form checkbox * @namespace form.checkbox * @memberof form */ Fae.form.checkbox = { init: function() { this.loginCheckbox(); this.setCheckboxAsActive(); }, /** * Login page checkbox listeners to add active class on click */ loginCheckbox: function() { $('.login-body') .on('click', 'label.boolean', function(e){ $(this).toggleClass('active'); }) .on('click', '.input.boolean :checkbox', function(e){ e.stopPropagation(); }); }, /** * 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'); } }); } }; ;T: metadata{ :dependencieso:Set: @hash} I"environment-version;TTI"environment-paths;TTI"rails-env;TTI"Zprocessors:type=application/javascript&file_type=application/javascript&pipeline=self;TTI"rfile-digest:///Library/WebServer/Documents/work/fine/_fae/app/assets/javascripts/fae/form/inputs/_checkbox.js;TTF: requiredo;;}F: stubbedo;;}F: linkso;;}F: charsetI" utf-8;F: digest"%vW3!#_w"# ^R7DZ: lengthik:dependencies_digest"%CQiYKM[g"^NO:idI"Efc7bb4df90c29da0bcd9375b5c2f27b4e80e33dac4f371efd9cbb0bac8b560d9;F: mtimel+YX