2015-12-28 16:19:30 +08:00
|
|
|
<% if @course %>
|
2016-01-07 17:15:19 +08:00
|
|
|
$("#show_more_attachments").replaceWith("<%= escape_javascript( render :partial => 'files/course_list',:locals => {course:@course,all_attachments: @all_attachments,sort:@sort,order:@order,curse_attachments:@obj_attachments} )%>");
|
2016-01-06 15:58:22 +08:00
|
|
|
<% elsif @project %>
|
|
|
|
$("#show_more_attachments").replaceWith("<%= escape_javascript( render :partial => 'files/project_list', :locals => {project:@project, all_attachments:@all_attachments, sort:@sort, order:@order, project_attachments:@obj_attachments})%>");
|
2016-01-12 16:43:40 +08:00
|
|
|
<% elsif @org_subfield %>
|
|
|
|
$("#show_more_attachments").replaceWith("<%= escape_javascript( render :partial => 'files/org_subfield_list', :locals => {org_subfield:@org_subfield, all_attachments:@all_attachments, sort:@sort, order:@order, org_subfield_attachments:@obj_attachments})%>");
|
2015-12-28 16:19:30 +08:00
|
|
|
<%end %>
|