2015-01-15 16:10:24 +08:00
|
|
|
$("#new_poll_question").html("");
|
2015-01-15 16:31:40 +08:00
|
|
|
$("#poll_content").append("<div id='poll_questions_<%= @poll_questions.id%>'>" +
|
|
|
|
"<div id='show_poll_questions_<%= @poll_questions.id %>'>" +
|
|
|
|
"<%= escape_javascript(render :partial => 'show_MC', :locals => {:poll_question => @poll_questions}) %>" +
|
|
|
|
"</div>" +
|
|
|
|
"<div id='edit_poll_questions_<%= @poll_questions.id %>' style='display: none;'>" +
|
|
|
|
"<%= escape_javascript(render :partial => 'edit_MC', :locals => {:poll_question => @poll_questions}) %>" +
|
|
|
|
"</div>" +
|
|
|
|
"</div>");
|
|
|
|
|