翻页时不更新作业动态
This commit is contained in:
parent
b8f7672424
commit
9526962c69
|
@ -11,7 +11,9 @@ class HomeworkCommonController < ApplicationController
|
|||
before_filter :member_of_course, :only => [:index]
|
||||
|
||||
def index
|
||||
update_homework_time(@course.homework_commons)
|
||||
unless params[:page]
|
||||
update_homework_time(@course.homework_commons)
|
||||
end
|
||||
@new_homework = HomeworkCommon.new
|
||||
@new_homework.homework_detail_manual = HomeworkDetailManual.new
|
||||
@new_homework.course = @course
|
||||
|
|
Loading…
Reference in New Issue