7 lines
772 B
Plaintext
7 lines
772 B
Plaintext
<% if (@obj_pages &&( @obj_pages.page > 1)) || (@feedback_pages && (@feedback_pages.page > 1)) %> //搜索的时候有时候是需要加载下一页,有时候是直接替换当前 #course_list。这个根据 page来判定
|
|
$("#show_more_attachments").replaceWith("<%= escape_javascript( render :partial => 'files/project_list',
|
|
:locals => {project: @project, all_attachments:@result, sort:@sort, order:@order, project_attachments:@searched_attach})%>");
|
|
<% else %>
|
|
$("#course_list").html("<%= escape_javascript(render :partial => 'files/project_list',:locals => {project:@project, all_attachments:@result, sort:@sort, order:@order,project_attachments:@searched_attach})%>");
|
|
$("#attachment_count").html("<%= @project_attachment_result.count %>")
|
|
<% end %> |