From 2eefdcd0ee5507a3a43fd0c09ed460e45da76467 Mon Sep 17 00:00:00 2001 From: cxt Date: Thu, 17 Mar 2016 15:17:00 +0800 Subject: [PATCH] =?UTF-8?q?=E6=89=B9=E6=94=B9=E7=A8=8B=E5=BA=8F=E4=BD=9C?= =?UTF-8?q?=E4=B8=9A=E6=97=B6=EF=BC=8C=E5=A6=82=E6=9E=9C=E4=B8=80=E4=B8=AA?= =?UTF-8?q?=E5=90=8C=E5=AD=A6A=E7=9A=84=E7=A8=8B=E5=BA=8F=E6=89=93?= =?UTF-8?q?=E5=BC=80=E5=90=8E=E6=B2=A1=E6=9C=89=E6=94=B6=E8=B5=B7=EF=BC=8C?= =?UTF-8?q?=E5=88=99=E5=90=8E=E9=9D=A2=E6=89=93=E5=BC=80=E7=9A=84=E5=AD=A6?= =?UTF-8?q?=E7=94=9F=E7=9A=84=E7=A8=8B=E5=BA=8F=E5=B0=B1=E5=92=8CA?= =?UTF-8?q?=E7=9A=84=E7=A8=8B=E5=BA=8F=E4=B8=80=E6=A0=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/student_work/_programing_work_show.html.erb | 2 +- app/views/student_work/_student_work_list.html.erb | 2 +- app/views/student_work/show.js.erb | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/views/student_work/_programing_work_show.html.erb b/app/views/student_work/_programing_work_show.html.erb index 8e7c58dc3..20d6df9ba 100644 --- a/app/views/student_work/_programing_work_show.html.erb +++ b/app/views/student_work/_programing_work_show.html.erb @@ -25,7 +25,7 @@
  • 编程代码: -
    +
    diff --git a/app/views/student_work/_student_work_list.html.erb b/app/views/student_work/_student_work_list.html.erb index 53e57fd9c..f9f55456b 100644 --- a/app/views/student_work/_student_work_list.html.erb +++ b/app/views/student_work/_student_work_list.html.erb @@ -71,7 +71,7 @@ indentUnit: 2, matchBrackets: true, readOnly: true, - value: $("#work-src").text() + value: $("#work-src_<%= work.id%>").text() }); <% elsif @homework.homework_type == 1 %> $("#about_hwork_<%= work.id%>").html("<%= escape_javascript(render :partial => 'show',:locals => {:work => work, :score =>student_work_score(work,User.current),:student_work_scores => work.student_works_scores.order("updated_at desc")}) %>"); diff --git a/app/views/student_work/show.js.erb b/app/views/student_work/show.js.erb index afa03bff8..135da3c0d 100644 --- a/app/views/student_work/show.js.erb +++ b/app/views/student_work/show.js.erb @@ -25,7 +25,7 @@ else{ indentUnit: 2, matchBrackets: true, readOnly: true, - value: $("#work-src").text() + value: $("#work-src_<%= @work.id%>").text() } );