This commit is contained in:
huang 2015-10-20 16:26:29 +08:00
commit 511fda0b40
3 changed files with 3 additions and 3 deletions

View File

@ -12,5 +12,5 @@
</div>
</div>
<%= render :partial => 'boards/course_new',
:locals => {:f => f, :edit_mode => edit_mode, :topic => topic} %>
:locals => {:f => f, :edit_mode => edit_mode, :topic => topic, :course => course} %>
</div>

View File

@ -30,7 +30,7 @@
:method => :post}
} do |f| %>
<%= render :partial => 'boards/course_message_edit',
:locals => {:f => f, :edit_mode => true, :topic => @message} %>
:locals => {:f => f, :edit_mode => true, :topic => @message, :course => @message.course} %>
<% end %>
<% end %>

View File

@ -603,7 +603,7 @@
success: function (data) {
schoolsResult = data.schools;
count = data.count;
maxPage = count % 100 + 1; //最大页码值
maxPage = Math.ceil(count/100) //最大页码值
if(schoolsResult.length != undefined && schoolsResult.length != 0) {
var i = 0;
$("#search_school_result_list").html('');