fix design upload
This commit is contained in:
parent
c48a11d9f5
commit
612ed629bc
|
@ -12,7 +12,6 @@ $('input.multi_files').change(function(){
|
|||
$(this).prev("ul").append("<li>"+$(this).val()+"</li>");
|
||||
new_node =$(this).clone();
|
||||
new_node.css("display","none");
|
||||
//new_node.val("asd");
|
||||
$(this).parent().append(new_node);
|
||||
$(this).val("");
|
||||
});
|
||||
|
|
|
@ -36,7 +36,7 @@
|
|||
<a class="remove_mark" href="#">Del</a></li>
|
||||
<% end %>
|
||||
</ul>
|
||||
<%= fields_for "design[stylesheet][]", @design, :index => nil do |f| %>
|
||||
<%= fields_for "design[stylesheets][]", @design, :index => nil do |f| %>
|
||||
<%= f.file_field :file ,{:class=>"multi_files",:rtype=>"stylesheets"}%>
|
||||
<% end %>
|
||||
</p>
|
||||
|
|
Loading…
Reference in New Issue