|
|
|
@ -42,21 +42,22 @@
|
|
|
|
|
<td>
|
|
|
|
|
<label >
|
|
|
|
|
<script>
|
|
|
|
|
function clickOK()
|
|
|
|
|
function click_<%= pa.id %>(obj)
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
$.ajax({
|
|
|
|
|
type: "GET",
|
|
|
|
|
url: "<%= bid.comment_status == 0 ? start_anonymous_comment_bid_path(bid) : stop_anonymous_comment_bid_path(bid)%>",
|
|
|
|
|
data: 'text',
|
|
|
|
|
type: "post",
|
|
|
|
|
url: "<%= commit_answer_poll_path(@poll) %>",
|
|
|
|
|
data: {
|
|
|
|
|
poll_answer_id: <%= pa.id %>,
|
|
|
|
|
poll_question_id: <%= pq.id %>
|
|
|
|
|
},
|
|
|
|
|
success: function (data) {
|
|
|
|
|
|
|
|
|
|
obj.checked = true;
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
</script>
|
|
|
|
|
<%= radio_button "poll_vote","poll_answer_id",pa.id,:class=>"ur_radio",:onclick =>"this.form.submit();return false" %>
|
|
|
|
|
<%= hidden_field_tag "poll_question_id",pq.id %>
|
|
|
|
|
<%= radio_button "poll_vote","poll_answer_id",pa.id,:class=>"ur_radio",:onclick =>"click_#{pa.id}(this);return false;" %>
|
|
|
|
|
<%= pa.answer_text %>
|
|
|
|
|
</label>
|
|
|
|
|
</td>
|
|
|
|
|