diff --git a/app/controllers/attachments_controller.rb b/app/controllers/attachments_controller.rb index 245ca0e7b..059bcbe91 100644 --- a/app/controllers/attachments_controller.rb +++ b/app/controllers/attachments_controller.rb @@ -72,7 +72,7 @@ class AttachmentsController < ApplicationController def batch_setting @course = Course.find params[:course_id] - @attachments = @course.attachments + @attachments = @course.attachments.reorder("created_on desc") @limit = 10 @attachment_count = @attachments.count @attachment_pages = Paginator.new @attachment_count, @limit, params['page'] || 1 diff --git a/app/views/attachments/_batch_setting.html.erb b/app/views/attachments/_batch_setting.html.erb new file mode 100644 index 000000000..de09aef37 --- /dev/null +++ b/app/views/attachments/_batch_setting.html.erb @@ -0,0 +1,116 @@ +
+ + \ No newline at end of file diff --git a/app/views/attachments/batch_setting.js.erb b/app/views/attachments/batch_setting.js.erb index e69de29bb..0527506bb 100644 --- a/app/views/attachments/batch_setting.js.erb +++ b/app/views/attachments/batch_setting.js.erb @@ -0,0 +1,2 @@ +var htmlvalue = "<%= j(render :partial => 'attachments/batch_setting') %>"; +pop_box_new(htmlvalue, 500, 500); \ No newline at end of file