28 lines
1.3 KiB
Plaintext
28 lines
1.3 KiB
Plaintext
<% if @save_succ %>
|
|
<% if !@jfm.nil? && @jfm.jour_type == 'Principal' %>
|
|
var html = $("<div>"+"<%= escape_javascript( render(:template => 'users/user_feedback4show',:locals => {:feed_list=>[@jfm]} )) %>"+"</div>");
|
|
$("div[nhname='container']",$("#nh_messages")).prepend(html.html());
|
|
// $('#new_message_cancel_btn').click();
|
|
$("a[nhname='reply_btn']",$("#nh_jours_<%= @jfm.m_reply_id %>")).click();
|
|
var params = init_list_more_div_params($("#nh_messages"));
|
|
change_status_4_list_more_div(params);
|
|
<% else %>
|
|
|
|
var pre_append = $('<%= j(
|
|
render :partial => "words/journal_reply_items",
|
|
:locals => {:reply => @jfm, :journal => @jfm.parent, :m_reply_id => @jfm,:show_name => @show_name}
|
|
) %>').hide();
|
|
$('#journal_reply_ul_<%=@jfm.m_parent_id%>').append(pre_append);
|
|
pre_append.fadeIn(600);
|
|
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();
|
|
setMaxLengthItem(pre_append.find('textarea')[0]);
|
|
<% end %>
|
|
|
|
<% else %>
|
|
alert("<%= l(:label_feedback_fail) %>");
|
|
<% end %> |