翻页时不更新作业动态

This commit is contained in:
cxt 2016-05-06 22:06:24 +08:00
parent b8f7672424
commit 9526962c69
1 changed files with 3 additions and 1 deletions

View File

@ -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