Sha256: bdc5efa58213d0317c52ce2b49f594777c6d48f9da36503a5f9b95521c2c8fc4

Contents?: true

Size: 1.81 KB

Versions: 1

Compression:

Stored size: 1.81 KB

Contents

{:uriI"file:///Users/rich/Development/link_to_add_fields/vendor/assets/javascripts/link_to_add_fields.js?type=application/javascript&pipeline=self&id=32501b063d9549166ee06ad4615afc8f1ff040cb300e035efdcced4c5277ca04:ET:load_pathI"I/Users/rich/Development/link_to_add_fields/vendor/assets/javascripts;T:
filenameI"_/Users/rich/Development/link_to_add_fields/vendor/assets/javascripts/link_to_add_fields.js;T:	nameI"link_to_add_fields;T:logical_pathI"link_to_add_fields.self.js;T:content_typeI"application/javascript;T:sourceI"// Generated by CoffeeScript 1.12.7
(function() {
  $(document).on('click', '[data-link-to-remove-field]', function(e) {
    var $field, target;
    e.preventDefault();
    $(this).prev('input[type=hidden]').val('1');
    target = $(this).data('link-to-remove-field');
    $field = $(this).closest(target);
    return $field.hide();
  });

  $(document).on('click', '[data-link-to-add-field]', function(e) {
    var fields_html, regexp, time;
    e.preventDefault();
    time = new Date().getTime();
    regexp = new RegExp($(this).data('link-to-add-field-id'), 'g');
    fields_html = $(this).data('link-to-add-field').replace(regexp, time);
    return $(this).before(fields_html);
  });

}).call(this);
;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"mfile-digest:///Users/rich/Development/link_to_add_fields/vendor/assets/javascripts/link_to_add_fields.js;TTF:
requiredo;;}F:stubbedo;;}F:
linkso;;}F:charsetI"
utf-8;F:digest"%>>a7!C{&y@I:lengthi:dependencies_digest"%MŠ*_%/.O8YB(:idI"E32501b063d9549166ee06ad4615afc8f1ff040cb300e035efdcced4c5277ca04;F:
mtimel+_@Y

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
link_to_add_fields-0.1.0 spec/dummy/tmp/cache/assets/sprockets/v3.0/hr/hrOl31BYc2VE0Ub06N_x5ZQ_Z3BtPlB2ZPj_Qq3vmHo.cache