From 003c6a7551a48821fe4f24338e081bdbe8a19151 Mon Sep 17 00:00:00 2001 From: cxt Date: Fri, 18 Nov 2016 18:37:41 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=BB=BA=E4=BD=9C=E4=B8=9A=E5=88=9D?= =?UTF-8?q?=E5=A7=8B=E6=98=BE=E7=A4=BA=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/helpers/application_helper.rb | 2 +- app/views/homework_common/index.html.erb | 2 +- app/views/users/_user_homework_form.html.erb | 32 ++++++++++++-------- public/javascripts/course.js | 6 ++++ public/stylesheets/css/courses.css | 2 +- 5 files changed, 28 insertions(+), 16 deletions(-) diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index 7420659e9..c52182b01 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -3728,7 +3728,7 @@ end def homework_type_option type = [] option0 = [] - option0 << "请选择" + option0 << "请选择作业类型" option0 << 0 option1 = [] option1 << "普通作业" diff --git a/app/views/homework_common/index.html.erb b/app/views/homework_common/index.html.erb index 8fd06e166..1351b67ac 100644 --- a/app/views/homework_common/index.html.erb +++ b/app/views/homework_common/index.html.erb @@ -12,7 +12,7 @@ $("#homework_end_time_span").text(""); $("#homework_course_id_span").text(""); $("#homework_editor").toggle(); - $("#select_type_nitice").show(); + //$("#select_type_nitice").show(); document.getElementById("homework_type_option").options[0].selected = true; } diff --git a/app/views/users/_user_homework_form.html.erb b/app/views/users/_user_homework_form.html.erb index 32ca4e50e..19a4abb5a 100644 --- a/app/views/users/_user_homework_form.html.erb +++ b/app/views/users/_user_homework_form.html.erb @@ -4,10 +4,17 @@ <%= javascript_include_tag 'homework','baiduTemplate' %>