回复的收缩

This commit is contained in:
zhangshenjerry 2015-07-02 15:28:23 +08:00
parent ddb705b658
commit 05eeb27de8
1 changed files with 1 additions and 0 deletions

View File

@ -1,6 +1,7 @@
$("#add_score_reply_<%= @score.id%>").html("<%= escape_javascript(render :partial => 'add_score_reply', :locals => {:score => @score}) %>");
<% if @status && @status == 1%>
$("#replay_histroy_<%= @score.id%>").prepend("<%= escape_javascript(render :partial => 'jour_replay', :locals => {:jour => @jour}) %>");
$("#add_score_reply_<%= @score.id%>").hide();
<% else%>
alert("回复内容不能为空");
<% end%>