|
|
|
@ -80,29 +80,29 @@
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//添加标题时确定按钮
|
|
|
|
|
function add_poll_question(doc,quest_type,quest_id)
|
|
|
|
|
function add_poll_question(doc,quest_type)
|
|
|
|
|
{
|
|
|
|
|
var title = $.trim($("#poll_questions_title").val());
|
|
|
|
|
var score = $.trim($("#question_score").val());
|
|
|
|
|
var standard_ans = $.trim($("#question_standard_ans").val());
|
|
|
|
|
if(title.length == 0 || score.length == 0){
|
|
|
|
|
alert("题目标题/分数不能为空");
|
|
|
|
|
}/*else if(standard_ans.length == 0) {
|
|
|
|
|
}else if(quest_type !=3 && standard_ans.length == 0) {
|
|
|
|
|
alert("标准答案不能为空");
|
|
|
|
|
}*/else{
|
|
|
|
|
}else{
|
|
|
|
|
doc.parent().parent().parent().submit();}
|
|
|
|
|
}
|
|
|
|
|
//修改标题时确定按钮
|
|
|
|
|
function edit_poll_question(doc,id)
|
|
|
|
|
function edit_poll_question(doc,id,quest_type)
|
|
|
|
|
{
|
|
|
|
|
var title = $.trim($("#poll_questions_title_" + id).val());
|
|
|
|
|
var score = $.trim($("#poll_question_score_"+ id).val());
|
|
|
|
|
var standard_ans = $.trim($("#poll_question_standard_answer_" + id).val());
|
|
|
|
|
if(title.length == 0 || score.length == 0){
|
|
|
|
|
alert("题目标题/分数不能为空");
|
|
|
|
|
}/*else if(standard_ans.length == 0) {
|
|
|
|
|
}else if(quest_type !=3 && standard_ans.length == 0) {
|
|
|
|
|
alert("标准答案不能为空");
|
|
|
|
|
}*/else{
|
|
|
|
|
}else{
|
|
|
|
|
doc.parent().parent().parent().submit();}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|