#1896 课程--问卷调查--新建题目时点击确定按钮无反应

This commit is contained in:
sw 2015-01-30 10:24:06 +08:00
parent c56f641163
commit 6bca666f08
1 changed files with 2 additions and 2 deletions

View File

@ -25,13 +25,13 @@
} }
//添加标题时确定按钮 //添加标题时确定按钮
function add_poll_question(obj) function add_poll_question(doc)
{ {
var title = $.trim($("#poll_questions_title").val()); var title = $.trim($("#poll_questions_title").val());
if(title.length == 0){alert("标题不能为空");}else{doc.parent().parent().parent().submit();} if(title.length == 0){alert("标题不能为空");}else{doc.parent().parent().parent().submit();}
} }
//修改标题时确定按钮 //修改标题时确定按钮
function edit_poll_question(obj,id) function edit_poll_question(doc,id)
{ {
var title = $.trim($("#poll_questions_title_" + id).val()); var title = $.trim($("#poll_questions_title_" + id).val());
if(title.length == 0){alert("标题不能为空");}else{doc.parent().parent().parent().submit();} if(title.length == 0){alert("标题不能为空");}else{doc.parent().parent().parent().submit();}