diff --git a/app/views/news/_course_show.html.erb b/app/views/news/_course_show.html.erb
index 0baafd513..9ae951779 100644
--- a/app/views/news/_course_show.html.erb
+++ b/app/views/news/_course_show.html.erb
@@ -32,7 +32,8 @@
<%= hidden_field_tag :asset_id,params[:asset_id],:required => false,:style => 'display:none' %>
<%= kindeditor_tag :comment, '',:height=>'100',:editor_id =>'comment_editor', :placeholder=>"最多250个字"%>
-
+
+
<%= l(:label_cancel_with_space) %>
@@ -76,4 +77,4 @@
<% end %>
-<% html_title @news.title -%>
+<% html_title @news.title -%>
\ No newline at end of file
diff --git a/app/views/users/_course_news_reply.html.erb b/app/views/users/_course_news_reply.html.erb
deleted file mode 100644
index c3f8571be..000000000
--- a/app/views/users/_course_news_reply.html.erb
+++ /dev/null
@@ -1,177 +0,0 @@
-
-<%= javascript_include_tag "/assets/kindeditor/kindeditor",'/assets/kindeditor/pasteimg' %>
-
-<% if @news.commentable? %>
-
-<% end %>
-
-
-
- <%= form_for('new_form', :method => :post,
- :url => {:controller => 'words', :action => 'leave_course_message'},:html => {:id=>'leave_message_form'}) do |f|%>
- <%= hidden_field_tag :asset_id,params[:asset_id],:required => false,:style => 'display:none' %>
-
-
- <% end %>
-
-
-
-
-
-
-
-
-
-
diff --git a/app/views/users/show_chen.erb b/app/views/users/show_chen.erb
deleted file mode 100644
index 3bd0014c6..000000000
--- a/app/views/users/show_chen.erb
+++ /dev/null
@@ -1,279 +0,0 @@
-
-
-
-
-
-

-
-
-
-
-
(作业描述)系统中有多个ckeditor,且每个ckeditor的id未知,怎么样做到当光标聚焦某个ckeditor的文本框中,该编辑器的默认值应自动消失的处理;网络拓扑图开发;
-
-
-
-
-
-
-
-
-

-
-
-
-
-
(作业描述)系统中有多个ckeditor,且每个ckeditor的id未知,怎么样做到当光标聚焦某个ckeditor的文本框中,该编辑器的默认值应自动消失的处理;网络拓扑图开发;
-
-
-
-
-
-
-
-
-
-
-
-

-
-
-
-
- 时间:2015-07-31
-
-
-
-
-
-
-
-
-
-
-
-
-
-

-
-
-
-
-
-
-

-
-
-
-
-
-
-
-
-
-

-
-
-
-
-
(缺陷描述)系统中有多个ckeditor,且每个ckeditor的id未知,怎么样做到当光标聚焦某个ckeditor的文本框中,该编辑器的默认值应自动消失的处理;网络拓扑图开发;
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-

-
-
-
-
-
-
-

-
-
-
-
软件工程是一门研究用工程化方法构建和维护有效的、实用的和高质量的软件的学科。它涉及程序设计语言、数据库、软件开发工具、系统平台、标准、设计模式等方面。
-
-
-
-
-
\ No newline at end of file
diff --git a/public/javascripts/course.js b/public/javascripts/course.js
index e5c50ac51..fc52ef87a 100644
--- a/public/javascripts/course.js
+++ b/public/javascripts/course.js
@@ -260,8 +260,23 @@ function submitFocus(obj)
function submitComment()
{
- comment_editor.sync();
- $("#add_comment_form").submit();
+ if (newsReplyVerify()) {
+ comment_editor.sync();
+ $("#add_comment_form").submit();
+ }
+}
+
+function newsReplyVerify() {
+ var content = comment_editor.html();
+ if(content.length == 0) {
+ $("#add_reply_news").text("评论不能为空");
+ $("#add_reply_news").css('color', '#ff0000');
+ return false;
+ } else {
+ $("#add_reply_news").text("填写正确");
+ $("#add_reply_news").css('color', '#008000');
+ return true;
+ }
}
/////////////////////////////////////////////////课程讨论区