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' %>