You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
pgfqe6ch8/app/views/memos/quote.js.erb

6 lines
301 B

6 years ago
if($("#reply_message_<%= @memo.id%>").html() == "") {
$(".reply_to_message").html("");
$("#reply_message_<%= @memo.id%>").replaceWith("<%= escape_javascript(render :partial => 'memos/reply_message', :locals => {:reply => @memo}) %>");
}else {
$("#reply_message_<%= @memo.id%>").html("");
}