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

9 lines
738 B
Plaintext
Raw Normal View History

2015-12-17 15:15:00 +08:00
<% 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}) %>");
$(".homepagePostReplyBannerCount").html('回复(<%= Issue.find( @issue_id).journals.count %>)')
2015-12-17 15:15:00 +08:00
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}) %>");
2015-12-17 15:15:00 +08:00
init_activity_KindEditor_data(<%#= @user_activity_id%>,"","87%");
// sd_create_editor_from_data(<%= @issue.id%>, null, "100%");
2015-12-15 18:43:58 +08:00
<%end %>