diff --git a/app/views/org_document_comments/edit.html.erb b/app/views/org_document_comments/edit.html.erb index 3ad388bd2..5997482fb 100644 --- a/app/views/org_document_comments/edit.html.erb +++ b/app/views/org_document_comments/edit.html.erb @@ -12,10 +12,12 @@ if($("#document_title").val().trim() == "") { $("#doc_title_hint").html("标题不能为空").show(); + return false; } else { $("#doc_title_hint").hide(); + return true; } }