From 03d70e8c9ac5043cac33069b52c2c2cdebed4c5e Mon Sep 17 00:00:00 2001 From: cxt Date: Fri, 27 May 2016 14:27:54 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BD=9C=E5=93=81=E5=88=97=E8=A1=A8=EF=BC=9A?= =?UTF-8?q?=E5=BD=93=E5=85=88=E8=BF=9B=E8=A1=8C=E4=BD=9C=E5=93=81=E6=90=9C?= =?UTF-8?q?=E7=B4=A2=E6=88=96=E9=80=89=E6=8B=A9=E5=88=86=E7=8F=AD=E6=93=8D?= =?UTF-8?q?=E4=BD=9C=E5=90=8E=EF=BC=8C=E7=84=B6=E5=90=8E=E7=82=B9=E5=87=BB?= =?UTF-8?q?=E2=80=9C=E9=9A=90=E8=97=8F=E4=BD=9C=E4=B8=9A=E4=BF=A1=E6=81=AF?= =?UTF-8?q?=E2=80=9D=EF=BC=8C=E5=86=8D=E7=82=B9=E5=87=BB=E2=80=9C=E6=98=BE?= =?UTF-8?q?=E7=A4=BA=E4=BD=9C=E4=B8=9A=E4=BF=A1=E6=81=AF=E2=80=9D=E6=97=A0?= =?UTF-8?q?=E5=8F=8D=E5=BA=94=20=EF=BC=88=E6=B5=8B=E9=AA=8C=E5=88=97?= =?UTF-8?q?=E8=A1=A8=E4=B9=9F=E4=B8=80=E8=B5=B7=E4=BF=AE=E5=A4=8D=E4=BA=86?= =?UTF-8?q?=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/exercise/_student_exercise.html.erb | 2 +- .../exercise/_student_exercise_archive.html.erb | 2 +- app/views/exercise/student_exercise_list.html.erb | 12 +++++++++--- app/views/student_work/_student_work_list.html.erb | 2 +- app/views/student_work/index.html.erb | 12 +++++++++--- 5 files changed, 21 insertions(+), 9 deletions(-) diff --git a/app/views/exercise/_student_exercise.html.erb b/app/views/exercise/_student_exercise.html.erb index f9fd114dd..2f567796a 100644 --- a/app/views/exercise/_student_exercise.html.erb +++ b/app/views/exercise/_student_exercise.html.erb @@ -17,7 +17,7 @@ --> <%#= select_tag(:student_work_in_group,options_for_select(course_group_list(@course),@group), {:class => "classSplit"}) unless course_group_list(@course).empty? %> <%# end%> - +
diff --git a/app/views/exercise/_student_exercise_archive.html.erb b/app/views/exercise/_student_exercise_archive.html.erb index abc604b73..3afac2dc2 100644 --- a/app/views/exercise/_student_exercise_archive.html.erb +++ b/app/views/exercise/_student_exercise_archive.html.erb @@ -17,7 +17,7 @@ --> <%#= select_tag(:student_work_in_group,options_for_select(course_group_list(@course),@group), {:class => "classSplit"}) unless course_group_list(@course).empty? %> <%# end%> - +
diff --git a/app/views/exercise/student_exercise_list.html.erb b/app/views/exercise/student_exercise_list.html.erb index c96f8156a..02f161589 100644 --- a/app/views/exercise/student_exercise_list.html.erb +++ b/app/views/exercise/student_exercise_list.html.erb @@ -5,8 +5,14 @@ $("#Container").css("width","1000px"); }); + function show_or_hide_info(){ + $("#homeworkInformation").toggle(); + $("#homework_info_hidden").toggle(); + $("#homework_info_show").toggle(); + } + $(function(){ - $("#homework_info_hidden").click(function(){ + /*$("#homework_info_hidden").click(function(){ $("#homeworkInformation").hide(); $("#homework_info_hidden").hide(); $("#homework_info_show").show(); @@ -15,7 +21,7 @@ $("#homework_info_show").hide(); $("#homeworkInformation").show(); $("#homework_info_hidden").show(); - }); + });*/ if($("#homework_description").height() > 54) { $("#homeworkDetailShow").show(); @@ -88,7 +94,7 @@ <% elsif @exercise.exercise_status == 3 %> 已截止 <% end%> - [ 隐藏测验信息 ] + [ 隐藏测验信息 ]
发布者:<%= @exercise.user.show_name %>
diff --git a/app/views/student_work/_student_work_list.html.erb b/app/views/student_work/_student_work_list.html.erb index 1c699d331..bc7ab947f 100644 --- a/app/views/student_work/_student_work_list.html.erb +++ b/app/views/student_work/_student_work_list.html.erb @@ -24,7 +24,7 @@ <%= link_to "代码查重", work_canrepeat_student_work_index_path(homework:@homework.id, course_id:@course.id), class: 'BlueCirBtn fl',:remote => true %> <% end %> <% end%> - +
diff --git a/app/views/student_work/index.html.erb b/app/views/student_work/index.html.erb index 96e43af46..d0aa0d329 100644 --- a/app/views/student_work/index.html.erb +++ b/app/views/student_work/index.html.erb @@ -33,8 +33,14 @@ $('#ajax-modal').parent().css("top","25%").css("left","35%").css("position","fixed").css("border","3px solid #269ac9"); } + function show_or_hide_info(){ + $("#homeworkInformation").toggle(); + $("#homework_info_hidden").toggle(); + $("#homework_info_show").toggle(); + } + $(function(){ - $("#homework_info_hidden").click(function(){ + /*$("#homework_info_hidden").click(function(){ $("#homeworkInformation").hide(); $("#homework_info_hidden").hide(); $("#homework_info_show").show(); @@ -43,7 +49,7 @@ $("#homework_info_show").hide(); $("#homeworkInformation").show(); $("#homework_info_hidden").show(); - }); + });*/ if($("#homework_description").height() > 54) { $("#homeworkDetailShow").show(); @@ -161,7 +167,7 @@ 教师评阅中 <% end%> <% end%> - [ 隐藏作业信息 ] + [ 隐藏作业信息 ]
发布者:<%= @homework.user.show_name %>