|
|
|
@ -315,7 +315,11 @@ function insert_MCQ(quest_type,quest_num,quest_id){
|
|
|
|
|
alert("问卷标题不能为空");
|
|
|
|
|
}
|
|
|
|
|
else{
|
|
|
|
|
$('#ajax-modal').html('<%= escape_javascript(render :partial => 'poll_submit', locals: { :poll => @poll,:is_remote => false}) %>');
|
|
|
|
|
if($("#show_result").is(":checked")) {
|
|
|
|
|
$('#ajax-modal').html('<%= escape_javascript(render :partial => 'poll_submit', locals: { :poll => @poll,:is_remote => false,:show_result=> 1}) %>');
|
|
|
|
|
} else{
|
|
|
|
|
$('#ajax-modal').html('<%= escape_javascript(render :partial => 'poll_submit', locals: { :poll => @poll,:is_remote => false,:show_result=> 0}) %>');
|
|
|
|
|
}
|
|
|
|
|
showModal('ajax-modal', '310px');
|
|
|
|
|
$('#ajax-modal').css('height','120px');
|
|
|
|
|
$('#ajax-modal').siblings().remove();
|
|
|
|
@ -377,7 +381,7 @@ function insert_MCQ(quest_type,quest_num,quest_id){
|
|
|
|
|
<%= l(:label_memo_create)%>
|
|
|
|
|
</a>
|
|
|
|
|
<div class="polls_cha">
|
|
|
|
|
<input type="checkbox" name="" value="" >
|
|
|
|
|
<input id="show_result" type="checkbox" checked name="show_result" value="1" >
|
|
|
|
|
<label for="">允许学生查看调查结果</label>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|