socialforge/app/views/issues/add_journal.js.erb

12 lines
1.1 KiB
Plaintext
Raw Normal View History

<% if @issue_id %> //issue详情中回复
2015-12-15 18:43:58 +08:00
$("#reply_div_<%= @issue_id %>").html("<%= escape_javascript(render :partial => 'issues/issue_replies', :locals => {:issue => Issue.find( @issue_id),:replies_all_i=>0}) %>");
2016-01-04 12:33:43 +08:00
$("#div_issue_attachment_<%=@issue.id %>").html("<%= escape_javascript(render :partial => 'issues/issue_attachments', :locals => {:issue => Issue.find( @issue_id)}) %>");
2016-01-08 14:42:28 +08:00
// $("#issue_test_<%#= @issue.id %>").html("<%#= escape_javascript(render :partial => 'issues/edit', :locals => {:issue => Issue.find( @issue_id)}) %>");
2015-12-15 18:43:58 +08:00
$(".homepagePostReplyBannerCount").html('回复(<%= Issue.find( @issue_id).journals.count %>)')
sd_create_editor_from_data(<%= @issue.id %>, null, "100%");
2015-12-15 18:43:58 +08:00
<%else%>
$("#user_activity_<%= @user_activity_id %>").replaceWith("<%= escape_javascript(render :partial => 'users/project_issue', :locals => {:activity => @issue,:user_activity_id =>@user_activity_id}) %>");
init_activity_KindEditor_data(<%= @user_activity_id %>,"","87%", 'UserActivity');
2015-12-17 17:15:03 +08:00
// sd_create_editor_from_data(<%#= @issue.id%>, null, "100%");
2015-12-18 09:20:51 +08:00
<%end %>