From de0ca8d3d80b5a3861ca6b4fcba242c4d2118944 Mon Sep 17 00:00:00 2001 From: lizanle <491823689@qq.com> Date: Wed, 4 Nov 2015 11:03:45 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AF=BE=E7=A8=8B=E7=9B=B8=E5=85=B3=E7=9A=84ke?= =?UTF-8?q?=20=E5=86=85=E5=AE=B9=E6=8F=90=E4=BA=A4bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/javascripts/course.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/public/javascripts/course.js b/public/javascripts/course.js index 7a93ab3ef..90d085ea3 100644 --- a/public/javascripts/course.js +++ b/public/javascripts/course.js @@ -176,7 +176,7 @@ function regexTopicSubject() { function regexTopicDescription() { var name = message_content_editor.html(); - if(name.length ==0) + if(message_content_editor.isEmpty()) { $("#message_content_span").text("描述不能为空"); $("#message_content_span").css('color','#ff0000'); @@ -327,7 +327,7 @@ function submitComment() function newsReplyVerify() { var content = comment_editor.html(); - if(content.length == 0) { + if(comment_editor.isEmpty()) { $("#add_reply_news").text("评论不能为空"); $("#add_reply_news").css('color', '#ff0000'); return false; @@ -356,7 +356,7 @@ function course_board_canel_message_replay() function MessageReplayVevify() { var content = message_content_editor.html();//$.trim($("#message_content").val()); - if (content.length == 0) { + if (message_content_editor.isEmpty()) { $("#message_content_span").text("回复不能为空"); $("#message_content_span").css('color', '#ff0000'); return false;