修复编辑组织文章显示问题;

动态中,首页不冗余显示。
This commit is contained in:
ouyangxuhua 2015-11-14 09:43:15 +08:00
parent 36b3d0b636
commit bee355e747
3 changed files with 3 additions and 2 deletions

View File

@ -21,6 +21,7 @@
<input class="postDetailInput fl mr15" style="margin-bottom:15px;" maxlength="250" name="org_document_comment[title]" id="document_title" style="resize:none;" onfocus = "$('#org_document_editor').show();" onblur="check_org_title();" value="<%= @org_document.title %>" />
</div>
<div id="doc_title_hint"></div>
<div class="cl"></div>
<div id="org_document_editor" class="mt15" style="">
<div class="mt10">
<%= kindeditor_tag 'org_document_comment[content]',@org_document.content, :editor_id => 'org_document_description_editor', :height => "150px" %>

View File

@ -16,7 +16,6 @@
<% @documents.each do |document| %>
<script>
$(function() {
console.log(111)
init_activity_KindEditor_data(<%= document.id%>, null, "87%");
});
</script>

View File

@ -52,7 +52,7 @@
</div>
</div>
<% end %>
<% if act.org_act_type == 'OrgDocumentComment' %>
<% if act.org_act_type == 'OrgDocumentComment' && act.org_act_id != @organization.home_id %>
<script>
$(function() {
init_activity_KindEditor_data(<%= act.org_act.id%>, null, "87%");
@ -69,3 +69,4 @@
<% end %>