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