diff --git a/app/views/users/_user_homework_detail.html.erb b/app/views/users/_user_homework_detail.html.erb
index cffb1d97a..fb4ec6bbe 100644
--- a/app/views/users/_user_homework_detail.html.erb
+++ b/app/views/users/_user_homework_detail.html.erb
@@ -41,6 +41,11 @@
<%= homework_common.language_name%>
<% end %>
+ <% if homework_common.homework_detail_manual.comment_status == 0 %>
+
+ <%= l(:label_publish_time)%>:<%= homework_common.publish_time%>
+
+ <% end %>
<%= l(:label_end_time)%>:<%= homework_common.end_time%>
diff --git a/config/locales/zh.yml b/config/locales/zh.yml
index a7274c3c2..12c1b9258 100644
--- a/config/locales/zh.yml
+++ b/config/locales/zh.yml
@@ -2024,6 +2024,7 @@ zh:
label_creat: 创建
#api end
+ label_publish_time: 发布时间
label_end_time: 截止时间
label_send_email: 确定发送
label_input_email: 请输入邮箱地址(必填)
diff --git a/public/javascripts/course.js b/public/javascripts/course.js
index ed920b48a..da24e2878 100644
--- a/public/javascripts/course.js
+++ b/public/javascripts/course.js
@@ -666,6 +666,7 @@ function regex_homework_end_publish_time()
$("#homework_publish_time").val(myDate.toLocaleDateString());
}
var publish_time = Date.parse($("#homework_publish_time").val());
+ var end_time = Date.parse($("#homework_end_time").val());
if(end_time < publish_time)
{
$("#homework_end_time_span").text("截止日期不能小于发布日期");
@@ -1258,4 +1259,4 @@ function course_outline(id){
// $('#course_outline_search').on('input',function(){
// alert('<%= @course.id%>')
// })
-//})
+//})