2015-10-09 14:39:40 +08:00
|
|
|
<script type="text/javascript">
|
|
|
|
$(function(){
|
|
|
|
$("#RSide").removeAttr("id");
|
|
|
|
$("#Container").css("width","1000px");
|
|
|
|
});
|
2015-10-15 16:17:48 +08:00
|
|
|
function reset_topic(){
|
|
|
|
$("#message_subject").val("");
|
|
|
|
$("#subjectmsg").text("");
|
|
|
|
document.getElementById("message_sticky").checked=false;
|
|
|
|
document.getElementById("message_locked").checked=false;
|
|
|
|
$("#topic_attachments").html("<%= escape_javascript(render :partial => 'attachments/form_course', :locals => {:container => Message.new, :isReply => @isReply})%>");
|
|
|
|
message_content_editor.html("");
|
|
|
|
$("#topic_editor").toggle();
|
|
|
|
}
|
|
|
|
<% if @is_new%>
|
|
|
|
$(function(){
|
|
|
|
$("#message_subject").focus();
|
|
|
|
});
|
|
|
|
<%end%>
|
2015-10-09 14:39:40 +08:00
|
|
|
</script>
|
2015-05-11 17:23:53 +08:00
|
|
|
|
2015-10-15 16:17:48 +08:00
|
|
|
<div class="homepageRight mt0 ml10">
|
|
|
|
<div class="homepageRightBanner">
|
|
|
|
<div class="NewsBannerName">
|
2016-03-04 17:11:52 +08:00
|
|
|
课程问答区
|
2015-10-15 16:17:48 +08:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<% if User.current.logged? %>
|
|
|
|
<%= labelled_form_for @message, :url =>{:controller=>'messages',:action => 'new', :board_id => @board.id, :is_board => 'true'},
|
|
|
|
:html => {:nhname=>'form',:multipart => true, :id => 'message-form'} do |f| %>
|
2015-12-18 15:02:36 +08:00
|
|
|
<%= render :partial => 'course_new', :locals => {:f => f, :topic => @message, :edit_mode => false, :course => @board.course} %>
|
2015-10-15 16:17:48 +08:00
|
|
|
<% end %>
|
|
|
|
<% end %>
|
2015-12-18 15:02:36 +08:00
|
|
|
<%= render :partial=> 'course_show_detail',:locals =>{:topics => @topics, :page => 0} %>
|
2015-10-15 16:17:48 +08:00
|
|
|
</div>
|