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;
}
}
diff --git a/app/views/organizations/_show_org_document.html.erb b/app/views/organizations/_show_org_document.html.erb
index cf68d71f5..fdd6772e7 100644
--- a/app/views/organizations/_show_org_document.html.erb
+++ b/app/views/organizations/_show_org_document.html.erb
@@ -10,7 +10,7 @@
TO <%= link_to document.organization.name, organization_path(document.organization), :class => "newsBlue" %>
|
<%= document.org_subfield_id.nil? ? "组织文章" :"#{OrgSubfield.find(document.org_subfield_id).name}" %>
- <% if @organization.home_id == document.id %>
+ <% if document.organization.home_id == document.id %>
已设为首页
<% end %>