|
|
|
@ -18,7 +18,7 @@
|
|
|
|
|
<%= hidden_field_tag "attachments[p#{i}][token]", "#{attachment.token}" %>
|
|
|
|
|
</span>
|
|
|
|
|
<% end %>
|
|
|
|
|
<% container.saved_attachments.each_with_index do |attachment, i| %>
|
|
|
|
|
<% container.saved_attachments.each_with_index do |attachment, i| %>
|
|
|
|
|
<span id="attachments_p<%= i %>" class="attachment">
|
|
|
|
|
<%= text_field_tag("attachments[p#{i}][filename]", attachment.filename, :class => 'filename readonly', :readonly => 'readonly') %>
|
|
|
|
|
<%= text_field_tag("attachments[p#{i}][description]", attachment.description, :maxlength => 254, :placeholder => l(:label_optional_description), :class => 'description', :style => "display: inline-block;") %>
|
|
|
|
@ -37,14 +37,6 @@
|
|
|
|
|
<% end %>
|
|
|
|
|
<% end %>
|
|
|
|
|
</span>
|
|
|
|
|
<script type='text/javascript'>
|
|
|
|
|
// function CompatibleSend()
|
|
|
|
|
// {
|
|
|
|
|
// var obj=document.getElementById("_file");
|
|
|
|
|
// var file= $(obj).clone();
|
|
|
|
|
// file.click();
|
|
|
|
|
// }
|
|
|
|
|
</script>
|
|
|
|
|
<% project = project %>
|
|
|
|
|
<span class="add_attachment" style="font-weight:normal;">
|
|
|
|
|
<%#= button_tag "浏览", :type=>"button", :onclick=>"CompatibleSend();" %>
|
|
|
|
|