Sha256: 2cff3112ef776323537873c2d932098a2d9991020cbf41714831c0db47dc64fa

Contents?: true

Size: 1.53 KB

Versions: 1

Compression:

Stored size: 1.53 KB

Contents

o: ActiveSupport::Cache::Entry	:@compressedF:@expires_in0:@created_atf1350314051.6223047:@value"´{I"
class:EFI"ProcessedAsset;FI"logical_path;FI"admin/nested-attribute.js;FI"
pathname;FI"t/home/stattert/.rvm/gems/ruby-1.9.3-p194/gems/spree_core-1.1.3/app/assets/javascripts/admin/nested-attribute.js;FI"content_type;FI"application/javascript;FI"
mtime;FI"2012-08-27T12:12:01+01:00;FI"length;Fi5I"digest;F"%798fea594a2259ded7b146b9afaa2da0I"source;FI"5//On page load 
replace_ids = function(s){
  var new_id = new Date().getTime();
  return s.replace(/NEW_RECORD/g, new_id);
}

$(function() {
  $('a[id*=nested]').click(function() { 
    var template = $(this).attr('href').replace(/.*#/, '');
    html = replace_ids(eval(template));
    $('#ul-' + $(this).attr('id')).append(html);
    update_remove_links();
  });  
  update_remove_links();
})   

var update_remove_links = function() {
  $('.remove').click(function() {
    $(this).prevAll(':first').val(1);
    $(this).parent().hide();
    return false;
  });
};
;FI"dependency_digest;F"%2e6bc46abea0959ccfed38d6879763abI"required_paths;F[I"t/home/stattert/.rvm/gems/ruby-1.9.3-p194/gems/spree_core-1.1.3/app/assets/javascripts/admin/nested-attribute.js;FI"dependency_paths;F[{I"	path;FI"t/home/stattert/.rvm/gems/ruby-1.9.3-p194/gems/spree_core-1.1.3/app/assets/javascripts/admin/nested-attribute.js;FI"
mtime;FI"2012-08-27T12:12:01+01:00;FI"digest;F"%798fea594a2259ded7b146b9afaa2da0I"
_version;F"%7270767b2a9e9fff880aa5de378ca791

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
datashift_spree-0.2.1 spec/sandbox/tmp/cache/assets/D44/1D0/sprockets%2F664dd5fa55f0d1f51d67b39fc242e761