o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1367856780.42752: @value"c{I" class:EFI"ProcessedAsset;FI"logical_path;FI"crimagify/nested_forms.js;TI" pathname;FI"Y/Users/juantrejo/projects/crimagify/app/assets/javascripts/crimagify/nested_forms.js;TI"content_type;FI"application/javascript;FI" mtime;FI"2013-05-06T10:03:01-06:00;FI" length;Fi5I" digest;F"%3f25bba17a37c86729f5cdd4f6b241f4I" source;FI"5$(function(){ var $frmCrimagify = $(".nested_crimagify_images"); if($frmCrimagify.find(".fieldset_crimagify_nested").length == 1){ setAttributesNames($frmCrimagify); }else if($frmCrimagify.find(".fieldset_crimagify_nested").length > 1) { $this = $frmCrimagify; var $fieldset = $frmCrimagify.find(".fieldset_crimagify_nested") for (var i = 0; i<$fieldset.length;i++){ console.log(i) var $new_fieldset = $($fieldset[i]); $new_fieldset.attr("id", "nested_"+i); $new_fieldset.attr("id","nested_" + i); $new_fieldset.find(".parent").attr('name',$this.data('parentobject')+'['+$this.data('parent')+'_attributes]['+i+'][parent]'); $new_fieldset.find(".parent_id").attr('name',$this.data('parentobject')+'['+$this.data('parent')+'_attributes]['+i+'][parent_id]'); $new_fieldset.find(".id_images").attr('name',$this.data('parentobject')+'['+$this.data('parent')+'_attributes]['+i+'][id_images]'); var imagesTemporal = $new_fieldset.find(".image_temporal"); for(var j = 0; j