From 1674391e4be1bce98f87cbe69878daaf78224dbe Mon Sep 17 00:00:00 2001 From: cxt Date: Fri, 11 Dec 2015 17:39:34 +0800 Subject: [PATCH] =?UTF-8?q?=E8=8B=A5=E5=88=A0=E9=99=A4=E8=BF=BD=E5=8A=A0?= =?UTF-8?q?=E7=9A=84=E9=99=84=E4=BB=B6=EF=BC=8C=E5=88=99=E2=80=9C=E8=BF=BD?= =?UTF-8?q?=E5=8A=A0=E9=99=84=E4=BB=B6=E2=80=9D=E5=AD=97=E6=A0=B7=E5=8F=8A?= =?UTF-8?q?=E2=80=9C=E8=BF=BD=E5=8A=A0=E6=97=B6=E9=97=B4=E2=80=9D=E4=B9=9F?= =?UTF-8?q?=E5=BA=94=E5=88=A0=E9=99=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/attachments/destroy.js.erb | 5 ++--- app/views/student_work/_revise_attachment.html.erb | 4 ++-- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/app/views/attachments/destroy.js.erb b/app/views/attachments/destroy.js.erb index cfbe68085..02a613e6e 100644 --- a/app/views/attachments/destroy.js.erb +++ b/app/views/attachments/destroy.js.erb @@ -1,8 +1,7 @@ <% if @is_destroy%> $("#attachment_<%= @attachment.id%>").remove(); - if(document.getElementById("uploadReviseBox")) { - $("#uploadReviseBox").removeClass('disable_link'); - $("#choose_revise_attach").attr("onclick","_file.click();"); + if(document.getElementById("revise_attachment_div_<%= @attachment.id%>")) { + $("#revise_attachment_div_<%= @attachment.id%>").remove(); } <%else%> var attachment_html_obj = $('#attachments_<%= j params[:attachment_id] %>'); diff --git a/app/views/student_work/_revise_attachment.html.erb b/app/views/student_work/_revise_attachment.html.erb index 968a4853b..4d85b1813 100644 --- a/app/views/student_work/_revise_attachment.html.erb +++ b/app/views/student_work/_revise_attachment.html.erb @@ -4,7 +4,7 @@
追加修订附件
-
+
追加附件: <%= render :partial => 'work_attachments_status', :locals => {:attachments => work.attachments.where("attachtype = 7"), :status => 2} %> 追加时间:<%=format_time revise_attachment.created_on.to_s %>  (<%=revise_attachment_status @homework,revise_attachment %>) @@ -15,7 +15,7 @@ 追加修订附件
<% if revise_attachment %> -
+
追加附件: <%= render :partial => 'work_attachments_status', :locals => {:attachments => work.attachments.where("attachtype = 7"), :status => 1} %> 追加时间:<%=format_time revise_attachment.created_on.to_s %>