Order in the admin page using jquery-ui sortable widget.

This commit is contained in:
iagirre
2017-10-09 17:36:48 +02:00
parent b95dc572c5
commit 2b10b59e2a
9 changed files with 61 additions and 25 deletions

View File

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