2016-08-05 16:12:53 +08:00
|
|
|
<% if @type == 1 %>
|
2016-08-05 18:41:32 +08:00
|
|
|
$("#my_homework_list").html('<%= escape_javascript(render :partial => "manage_homework_list", :locals => {:homeworks => @homeworks, :is_manage => 1})%>');
|
2016-08-05 16:12:53 +08:00
|
|
|
<% else %>
|
|
|
|
$("#my_homework_list").html('<%= escape_javascript(render :partial => "receive_homework_list", :locals => {:homeworks => @homeworks})%>');
|
|
|
|
<% end %>
|
|
|
|
$("#homework_list_ref_pages").html('<%= pagination_links_full @hw_pages, @hw_count, :per_page_links => false, :remote => @is_remote, :flag => true, :is_new => true %>');
|
|
|
|
$("#my_homework_sort").html('<%= escape_javascript( render :partial => 'users/my_homework_sort', :locals => {:type => @type,:property => @property,:order => @order,:search => @search})%>');
|