项目动态issue模块删除的时候样式

This commit is contained in:
huang 2016-10-21 11:26:15 +08:00
parent 1f4e8ca931
commit 3ccff07bf0
2 changed files with 2 additions and 1 deletions

View File

@ -563,6 +563,7 @@ class IssuesController < ApplicationController
# 值所以用delete是因为issue和journal在act_as_attachment中是同一个类型 # 值所以用delete是因为issue和journal在act_as_attachment中是同一个类型
# 非动态页面直接刷新,动态页面手动刷新 # 非动态页面直接刷新,动态页面手动刷新
def delete_journal def delete_journal
@is_project = params[:is_project]
@issue = Issue.find(params[:id]) @issue = Issue.find(params[:id])
begin begin
forge_acts = ForgeMessage.where(:forge_message_type => "Journal", :forge_message_id => params[:journal_id]) forge_acts = ForgeMessage.where(:forge_message_type => "Journal", :forge_message_id => params[:journal_id])

View File

@ -1,5 +1,5 @@
<% if @user_activity_id %> <% if @user_activity_id %>
<% if params[:id_project] %> <% if @is_project %>
$("#div_user_issue_reply_<%=@user_activity_id%>").html("<%= escape_javascript(render :partial => 'projects/project_issue_reply', :locals => {:activity => @issue, :user_activity_id => @user_activity_id}) %>"); $("#div_user_issue_reply_<%=@user_activity_id%>").html("<%= escape_javascript(render :partial => 'projects/project_issue_reply', :locals => {:activity => @issue, :user_activity_id => @user_activity_id}) %>");
<% else %> <% else %>
$("#div_user_issue_reply_<%=@user_activity_id%>").html("<%= escape_javascript(render :partial => 'users/project_issue_reply', :locals => {:activity => @issue, :user_activity_id => @user_activity_id}) %>"); $("#div_user_issue_reply_<%=@user_activity_id%>").html("<%= escape_javascript(render :partial => 'users/project_issue_reply', :locals => {:activity => @issue, :user_activity_id => @user_activity_id}) %>");