diff --git a/app/views/messages/_course_show.html.erb b/app/views/messages/_course_show.html.erb
index 613444c15..58043b077 100644
--- a/app/views/messages/_course_show.html.erb
+++ b/app/views/messages/_course_show.html.erb
@@ -141,9 +141,9 @@
<% end %>
<% if !@topic.locked? && authorize_for_course('messages', 'reply') %>
- <%= form_for @reply, :as => :reply, :url => {:action => 'reply', :id => @topic}, :html => {:multipart => true, :id => 'message-form'} do |f| %>
+ <%= form_for @reply, :as => :reply, :url => {:action => 'reply', :id => @topic}, :html => {:multipart => true, :id => 'message_form'} do |f| %>
<%= render :partial => 'form_course', :locals => {:f => f, :replying => true} %>
-
<%= l(:button_submit)%>
+
<%= l(:button_submit)%>
<% end %>
@@ -162,7 +162,7 @@
{
if(flag)
{
- $("#message-form").submit();
+ $("#message_form").submit();
}
}
function regexContent()
diff --git a/app/views/messages/_form_course.html.erb b/app/views/messages/_form_course.html.erb
index e6dc99995..8f806ac97 100644
--- a/app/views/messages/_form_course.html.erb
+++ b/app/views/messages/_form_course.html.erb
@@ -35,7 +35,9 @@
- <%= render :partial => 'attachments/new_form', :locals => {:container => @message,:isReply => @isReply} %>
+
+ <%= render :partial => 'attachments/form_course', :locals => {:container => @message,:isReply => @isReply} %>
+