From 89af4b451bc4c8c767fa73f8f70b1cd179dbe1a8 Mon Sep 17 00:00:00 2001
From: guange <8863824@gmail.com>
Date: Wed, 8 Apr 2015 13:52:52 +0800
Subject: [PATCH 01/13] =?UTF-8?q?#2100=20IE8=E4=B8=AD=EF=BC=8C=E8=AF=BE?=
=?UTF-8?q?=E7=A8=8B--=E8=80=81=E5=B8=88=E5=8F=91=E5=B8=83=E4=BD=9C?=
=?UTF-8?q?=E4=B8=9A/=E5=AD=A6=E7=94=9F=E6=8F=90=E4=BA=A4=E4=BD=9C?=
=?UTF-8?q?=E4=B8=9A=EF=BC=8C=E4=B8=8A=E4=BC=A0=E9=99=84=E4=BB=B6=E6=8F=90?=
=?UTF-8?q?=E4=BA=A4=E4=B8=8D=E4=BA=86?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
app/views/attachments/_form.html.erb | 16 ----------------
app/views/attachments/_new_form.html.erb | 6 +++---
app/views/bids/edit.html.erb | 2 +-
app/views/courses/new_homework.html.erb | 2 +-
app/views/files/_attachement_list.html.erb | 4 ++--
app/views/homework_attach/new.html.erb | 1 +
public/javascripts/attachments.js | 3 ++-
7 files changed, 10 insertions(+), 24 deletions(-)
diff --git a/app/views/attachments/_form.html.erb b/app/views/attachments/_form.html.erb
index b026fead2..18586e809 100644
--- a/app/views/attachments/_form.html.erb
+++ b/app/views/attachments/_form.html.erb
@@ -17,23 +17,7 @@
<%= hidden_field_tag "attachments[p#{i}][token]", "#{attachment.token}" %>
<% end %>
- <% container.saved_attachments.each_with_index do |attachment, i| %>
-
- <%= 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;") %>
- <%= l(:field_is_public)%>:
- <%= check_box_tag("attachments[p#{i}][is_public_checkbox]", attachment.is_public,attachment.is_public == 1 ? true : false,:class => 'is_public')%>
- <%= if attachment.id.nil?
- #待补充代码
- else
- link_to(' '.html_safe, attachment_path(attachment, :attachment_id => "p#{i}", :format => 'js'), :method => 'delete', :remote => true, :class => 'remove-upload')
- end
- %>
- <%#= render :partial => 'tags/tag', :locals => {:obj => attachment, :object_flag => "6"} %>
- <%= hidden_field_tag "attachments[p#{i}][token]", "#{attachment.token}" %>
-
- <% end %>
<% end %>