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);
|
2014-10-28 17:22:35 +08:00
|
|
|
var textarea = $('#project_respond_form_<%=@jfm.m_reply_id.to_s%> textarea');
|
|
|
|
textarea.val('');
|
|
|
|
$('#project_respond_form_<%=@jfm.m_reply_id.to_s%>').hide();
|
|
|
|
var textarea1 = $('#course_respond_form_<%=@jfm.m_reply_id.to_s%> textarea');
|
|
|
|
textarea1.val('');
|
|
|
|
$('#course_respond_form_<%=@jfm.m_reply_id.to_s%>').hide();
|
2013-12-28 13:16:22 +08:00
|
|
|
setMaxLengthItem(pre_append.find('textarea')[0]);
|
2013-12-25 22:21:16 +08:00
|
|
|
<% else %>
|
|
|
|
alert("<%= l(:label_feedback_fail) %>");
|
|
|
|
<% end %>
|