From 01287ff93cc07c3afe478b0e43eec5bb19075781 Mon Sep 17 00:00:00 2001 From: cxt Date: Fri, 13 May 2016 14:40:28 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AD=A6=E7=94=9F=E6=89=93=E5=BC=80=E6=96=B0?= =?UTF-8?q?=E5=BB=BA=E7=9A=84=E4=BD=9C=E4=B8=9A=E5=88=97=E8=A1=A8=E6=8A=A5?= =?UTF-8?q?500?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/student_work/_student_work_list.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/student_work/_student_work_list.html.erb b/app/views/student_work/_student_work_list.html.erb index 8655ccedd..8fc98c6ca 100644 --- a/app/views/student_work/_student_work_list.html.erb +++ b/app/views/student_work/_student_work_list.html.erb @@ -56,8 +56,8 @@ <% else %> <% work= params[:show_work_id].nil? ? @homework.student_works.where("user_id = ?",User.current.id).first : StudentWork.find(params[:show_work_id]) %> <% end %> - location.hash = "<%=work.id %>"; <% unless work.nil? %> + location.hash = "<%=work.id %>"; <% if @homework.homework_type == 2 %> $("#about_hwork_<%= work.id%>").html("<%= escape_javascript(render :partial => 'programing_work_show',:locals => {:work =>work,:score =>student_work_score(work,User.current),:student_work_scores => work.student_works_scores.order("updated_at desc"),:is_focus => @is_focus}) %>");