diff --git a/app/controllers/files_controller.rb b/app/controllers/files_controller.rb index 8dd8ba93f..91176efdf 100644 --- a/app/controllers/files_controller.rb +++ b/app/controllers/files_controller.rb @@ -265,6 +265,7 @@ class FilesController < ApplicationController 'size' => "#{Attachment.table_name}.filesize", 'downloads' => "#{Attachment.table_name}.downloads" sort='' + if params[:sort] params[:sort].split(",").each do |sort_type| order_by = sort_type.split(":") diff --git a/app/views/files/_course_file.html.erb b/app/views/files/_course_file.html.erb index a1dae9a33..9f476aba8 100644 --- a/app/views/files/_course_file.html.erb +++ b/app/views/files/_course_file.html.erb @@ -2,6 +2,7 @@ <% attachmenttypes = @course.attachmenttypes %> <% sufixtypes = @course.contenttypes %> + <%= t(:label_user_course) %>资源共享区
@@ -49,7 +50,8 @@ <% if attachmenttypes.any? %>       - <%= select_tag "attachment_browse", content_tag(:option, l(:attachment_all), :value => '0') +options_from_collection_for_select(attachmenttypes, "id", "typeName"), + <%= select_tag "attachment_browse", content_tag(:option, l(:attachment_all), :value => '0' ) +options_from_collection_for_select(attachmenttypes, "id", "typeName", params[:type]), + :onchange => "course_attachmenttypes_searchex(this.value)" %> <% end %> <% if sufixtypes.any? %>