diff --git a/app/views/welcome/contest.html.erb b/app/views/welcome/contest.html.erb index bd8be87a3..7769be8b3 100644 --- a/app/views/welcome/contest.html.erb +++ b/app/views/welcome/contest.html.erb @@ -169,7 +169,7 @@ <% end %> -
+
<%=contest.description.truncate(100, omission: '...')%>

diff --git a/app/views/words/create_reply.js.erb b/app/views/words/create_reply.js.erb index eb2ea7369..6af90ef02 100644 --- a/app/views/words/create_reply.js.erb +++ b/app/views/words/create_reply.js.erb @@ -5,9 +5,15 @@ ) %>').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 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]); <% else %> alert("<%= l(:label_feedback_fail) %>");