|
|
|
@ -1894,7 +1894,9 @@ module ApplicationHelper
|
|
|
|
|
|
|
|
|
|
def sort_homework_path(bid, sort, direction)
|
|
|
|
|
case self.action_name
|
|
|
|
|
when 'get_not_batch_homework', 'show_courseEx'
|
|
|
|
|
when 'show_courseEx'
|
|
|
|
|
get_not_batch_homework_homework_attach_path(bid, sort: sort, direction: 'asc')
|
|
|
|
|
when 'get_not_batch_homework'
|
|
|
|
|
get_not_batch_homework_homework_attach_path(bid, sort: sort, direction: direction)
|
|
|
|
|
when 'get_batch_homeworks'
|
|
|
|
|
get_batch_homeworks_homework_attach_path(bid, sort: sort, direction: direction)
|
|
|
|
|