Sha256: 6cd53fb4944f6a5f6c69858dc6501c56ebaac83de2a5b035248c5a35fce06cdf

Contents?: true

Size: 1.2 KB

Versions: 2

Compression:

Stored size: 1.2 KB

Contents

{I"
class:ETI"ProcessedAsset;FI"logical_path;TI"&peoplefinder/form_input_mapper.js;FI"
pathname;TI"`/Users/jakub/code/moj/peoplefinder/app/assets/javascripts/peoplefinder/form_input_mapper.js;FI"content_type;TI"application/javascript;TI"
mtime;Tl+Ñ_WTI"length;Ti‰I"digest;TI"%c748f384cbb09bf0c0aecaf38c028b73;FI"source;TI"‰/* global $ */


function FormInputMapper(element) {
  this._hiddenInput = $(element).find('input[type="hidden"]');
  this.active = !!this._hiddenInput.length;
}

FormInputMapper.prototype.getId = function() {
  return parseInt(this._hiddenInput.attr('value'), 10);
};

FormInputMapper.prototype.setId = function(id) {
  if (!this.active) { return; }
  this._hiddenInput.attr('value', id);
};
;TI"dependency_digest;TI"%605182f434723511e387a64e85a1adcd;FI"required_paths;T[I"`/Users/jakub/code/moj/peoplefinder/app/assets/javascripts/peoplefinder/form_input_mapper.js;FI"dependency_paths;T[{I"	path;TI"`/Users/jakub/code/moj/peoplefinder/app/assets/javascripts/peoplefinder/form_input_mapper.js;FI"
mtime;TI"2014-11-03T10:58:25+00:00;TI"digest;TI"%9354b93b5195becf29e244663b5b11d0;FI"
_version;TI"%01511319732b44ed6445e68132ed559b;F

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
peoplefinder-0.1.1 spec/dummy/tmp/cache/assets/development/sprockets/393b33d79df492bbbec38bf48145bfc7
peoplefinder-0.1.0 spec/dummy/tmp/cache/assets/development/sprockets/393b33d79df492bbbec38bf48145bfc7