27 lines
1.9 KiB
Plaintext
27 lines
1.9 KiB
Plaintext
<% if @issue_id %> //issue详情中回复
|
|
$("#reply_div_<%= @issue_id %>").html("<%= escape_javascript(render :partial => 'issues/issue_replies', :locals => {:issue => Issue.find( @issue_id),:replies_all_i=>0}) %>");
|
|
$("#div_issue_attachment_<%=@issue.id %>").html("<%= escape_javascript(render :partial => 'issues/issue_attachments', :locals => {:issue => Issue.find( @issue_id)}) %>");
|
|
$("#issue_edit").replaceWith('<%= escape_javascript(render :partial => 'issues/edit') %>')
|
|
sd_create_editor_from_data(<%= @issue.id%>, null, "100%");
|
|
issue_desc_editor = KindEditor.create('#issue_description',
|
|
{"width":"85%",
|
|
"resizeType":0,
|
|
"no_label":true,
|
|
"at_id":<%= @issue.project_id%>,
|
|
"at_type":"Project",
|
|
"autoHeightMode":true,
|
|
"afterCreate":"eval(function(){ if(typeof enablePasteImg ==='function'){enablePasteImg(self);};if(typeof enableAt ==='function'){enableAt(self, \"<%=@issue.project_id %>\", 'Project');}; this.loadPlugin('autoheight')})",
|
|
"emotionsBasePath":'<%= Setting.host_name%>',
|
|
"height":300,
|
|
"allowFileManager":true,
|
|
"uploadJson":"/kindeditor/upload",
|
|
"fileManagerJson":"/kindeditor/filemanager"});
|
|
// $("#issue_test_<%#= @issue.id %>").html("<%#= escape_javascript(render :partial => 'issues/edit', :locals => {:issue => Issue.find( @issue_id)}) %>");
|
|
$(".homepagePostReplyBannerCount").html('回复(<%= Issue.find( @issue_id).journals.count %>)')
|
|
sd_create_editor_from_data(<%= @issue.id %>, null, "100%");
|
|
<%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');
|
|
// sd_create_editor_from_data(<%#= @issue.id%>, null, "100%");
|
|
<%end %>
|