Order in the admin page using jquery-ui sortable widget.
This commit is contained in:
@@ -37,6 +37,12 @@ class Admin::Poll::Questions::AnswersController < Admin::Poll::BaseController
|
||||
@documents = @answer.documents
|
||||
|
||||
render 'admin/poll/questions/answers/documents'
|
||||
end
|
||||
|
||||
def order_answers
|
||||
::Poll::Question::Answer.order_answers(params[:ordered_list])
|
||||
#redirect_to admin_question_path(params[:question_id])
|
||||
render :nothing => true
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
Reference in New Issue
Block a user