2015-09-18 17:44:16 +08:00
|
|
|
<% if @obj_type == 'Memo'%>
|
|
|
|
$('#praise_tread_<%= @obj.id %>').html('<%= j(
|
|
|
|
render :partial => "/memos/praise_tread",:locals => {:obj => @obj,:user_id => User.current.id,:horizontal => @horizontal}
|
|
|
|
)%>');
|
2016-01-13 19:16:51 +08:00
|
|
|
<% elsif @activity %>
|
2016-01-13 16:32:05 +08:00
|
|
|
<% if @type.to_s == 'activity' %>
|
|
|
|
$('#praise_count_<%=@user_activity_id %>').html('<%=j(render :partial=> "praise_tread/praise", :locals => {:activity=>@obj, :user_activity_id=>@user_activity_id,:type=>"activity"})%>');
|
2016-01-14 10:07:46 +08:00
|
|
|
<% else @type.to_s == 'reply' %>
|
|
|
|
$('#reply_praise_count_<%=@user_activity_id %>').html('<%=j(render :partial=> "praise_tread/praise", :locals => {:activity=>@obj, :user_activity_id=>@user_activity_id,:type=>"reply"})%>');
|
2016-01-13 16:32:05 +08:00
|
|
|
<% end %>
|
2015-09-18 17:44:16 +08:00
|
|
|
<% else %>
|
|
|
|
$('#praise_tread_<%= @obj.id %>').html('<%= j(
|
|
|
|
render :partial => "/praise_tread/praise_tread",:locals => {:obj => @obj,:user_id => User.current.id,:horizontal => @horizontal}
|
|
|
|
)%>');
|
|
|
|
<% end %>
|