Sha256: 2c50e7c2ed639cb3a76c7082654d189a0fa554570f3b634d5138762840eb443e

Contents?: true

Size: 1.65 KB

Versions: 1

Compression:

Stored size: 1.65 KB

Contents

{:uriI"file:///Library/WebServer/Documents/work/fine/_fae/app/assets/javascripts/fae/form/inputs/_checkbox.js?type=application/javascript&pipeline=self&id=c0314fc1c2a433f1c9a71cb27b2a28dc78e4c360a480c85625f38ab45d1e97ec: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"/* 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');
      }
    });
  }

};
;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"%DJ2yR0J_ޝy/tu\H(:lengthi:dependencies_digest"%k;5dZ_;Wdz4I'͓1:idI"Ec0314fc1c2a433f1c9a71cb27b2a28dc78e4c360a480c85625f38ab45d1e97ec;F:
mtimel+ɧX

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
fae-rails-1.6.0 spec/dummy/tmp/cache/assets/sprockets/v3.0/-e/-EhGtJk4KdWlsQt-Q79rJo7UXjK12CB2WG_vEE_ce0Q.cache