socialforge/app/views/words/create_reply.js.erb

12 lines
483 B
Plaintext
Raw Normal View History

2013-12-25 22:21:16 +08:00
<% if @save_succ %>
2013-12-26 19:28:18 +08:00
var pre_append = $('<%= j(
2013-12-25 22:21:16 +08:00
render :partial => "words/journal_reply_items",
2013-12-28 12:16:08 +08:00
:locals => {:reply => @jfm, :journal => @jfm.parent, :m_reply_id => @jfm}
2013-12-26 19:28:18 +08:00
) %>').hide();
$('#journal_reply_ul_<%=@jfm.m_parent_id%>').append(pre_append);
pre_append.fadeIn(600);
2013-12-25 22:21:16 +08:00
$('#project_respond_form_<%=@jfm.m_reply_id.to_s%> textarea').val('');
$('#project_respond_form_<%=@jfm.m_reply_id.to_s%>').hide();
<% else %>
alert("<%= l(:label_feedback_fail) %>");
<% end %>