2016-07-26 12:06:54 +08:00
|
|
|
$("#reply_div_<%= @issue.id %>").html("<%= escape_javascript(render :partial => 'issues/issue_replies', :locals => {:issue => @issue}) %>");
|
|
|
|
$("#issue_detail_show").html('<%= escape_javascript(render :partial => 'issues/detail') %>')
|
|
|
|
$("#issue_edit_show").html('<%= escape_javascript(render :partial => 'issues/edit') %>')
|
|
|
|
$("#div_issue_attachment_<%=@issue.id %>").html("<%= escape_javascript(render :partial => 'issues/issue_attachments', :locals => {:issue => @issue}) %>");
|
|
|
|
sd_create_editor_from_data(<%= @issue.id %>, null, "100%", "<%= @issue.class.name %>");
|
|
|
|
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)}) %>");
|
2016-08-29 16:25:30 +08:00
|
|
|
$(".homepagePostReplyBannerCount").html('<%= escape_javascript(render :partial => 'issues/issue_reply_banner') %>');
|
2016-07-26 12:06:54 +08:00
|
|
|
sd_create_editor_from_data(<%= @issue.id%>, null, "100%","<%= @issue.class.name %>");
|