From 30db43eb13b59b04de4b45deb1ffffc1c3c34e37 Mon Sep 17 00:00:00 2001 From: cxt Date: Thu, 16 Jun 2016 15:58:34 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BD=9C=E4=B8=9A=E5=BC=80=E5=90=AF=E5=8C=BF?= =?UTF-8?q?=E8=AF=84=E4=B9=8B=E5=90=8E=EF=BC=8C=E5=A6=82=E6=9E=9C=E6=98=AF?= =?UTF-8?q?=E6=99=AE=E9=80=9A=E4=BD=9C=E4=B8=9A=EF=BC=8C=E4=BC=9A=E6=8F=90?= =?UTF-8?q?=E7=A4=BA=E5=AD=A6=E7=94=9F=E6=8F=90=E4=BA=A4=E7=9A=84=E4=BD=9C?= =?UTF-8?q?=E4=B8=9A=E4=B8=8D=E4=BC=9A=E8=BF=9B=E5=85=A5=E5=8C=BF=E8=AF=84?= =?UTF-8?q?=EF=BC=8C=E4=B9=9F=E4=B8=8D=E8=83=BD=E5=AF=B9=E5=85=B6=E4=BB=96?= =?UTF-8?q?=E4=BA=BA=E8=BF=9B=E8=A1=8C=E5=8C=BF=E8=AF=84=EF=BC=8C=E5=A6=82?= =?UTF-8?q?=E6=9E=9C=E6=98=AF=E7=BC=96=E7=A8=8B=E4=BD=9C=E4=B8=9A=EF=BC=8C?= =?UTF-8?q?=E5=9C=A8=E6=89=93=E5=BC=80=E4=BD=9C=E4=B8=9A=E6=97=B6=E5=88=99?= =?UTF-8?q?=E6=97=A0=E6=AD=A4=E6=8F=90=E7=A4=BA=EF=BC=8C=E5=BA=94=E8=AF=A5?= =?UTF-8?q?=E7=BB=9F=E4=B8=80=EF=BC=8C=E5=9D=87=E8=BF=9B=E8=A1=8C=E6=8F=90?= =?UTF-8?q?=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/users/new_user_commit_homework.html.erb | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/app/views/users/new_user_commit_homework.html.erb b/app/views/users/new_user_commit_homework.html.erb index 4a7e5cee3..238102879 100644 --- a/app/views/users/new_user_commit_homework.html.erb +++ b/app/views/users/new_user_commit_homework.html.erb @@ -7,6 +7,15 @@ $(function(){ $("#RSide").removeAttr("id"); $("#Container").css("width","1000px"); + <%if @homework.anonymous_comment == 0 && @homework.homework_detail_manual.comment_status != 1%> + $('#ajax-modal').html('<%= escape_javascript(render :partial => 'student_work/new_student_work_alert') %>'); + showModal('ajax-modal', '360px'); + $('#ajax-modal').siblings().remove(); + $('#ajax-modal').before("" + + ""); + $('#ajax-modal').parent().css("top","65%").css("left","60%").css("border","3px solid #269ac9"); + $('#ajax-modal').parent().addClass("anonymos_work"); + <% end%> });