diff --git a/app/views/poll/_edit_MC.html.erb b/app/views/poll/_edit_MC.html.erb index cc52e7c6b..9c34e1d51 100644 --- a/app/views/poll/_edit_MC.html.erb +++ b/app/views/poll/_edit_MC.html.erb @@ -5,13 +5,13 @@
- +
diff --git a/app/views/poll/_poll_form.html.erb b/app/views/poll/_poll_form.html.erb index edf74c965..1387bdd02 100644 --- a/app/views/poll/_poll_form.html.erb +++ b/app/views/poll/_poll_form.html.erb @@ -26,6 +26,16 @@ //问卷头 function pollsCancel(){$("#polls_head_edit").hide();$("#polls_head_show").show();} function pollsEdit(){$("#polls_head_edit").show();$("#polls_head_show").hide();} + // + function pollQuestionCancel(question_id){ + $("#show_poll_questions_"+question_id).show(); + $("#edit_poll_questions_"+question_id).hide(); + } + function pollQuestionEdit(question_id){ + $("#show_poll_questions_"+question_id).hide(); + $("#edit_poll_questions_"+question_id).show(); + $("#poll_questions_title_"+question_id).focus(); + } //单选题 function add_single_answer(doc) { diff --git a/app/views/poll/_show_MC.html.erb b/app/views/poll/_show_MC.html.erb index a33967ffd..93077b5b3 100644 --- a/app/views/poll/_show_MC.html.erb +++ b/app/views/poll/_show_MC.html.erb @@ -9,8 +9,8 @@ <%end%> - - + +