From 6bca666f08593fbcbf18b4d81012ba72d198e0a6 Mon Sep 17 00:00:00 2001 From: sw <939547590@qq.com> Date: Fri, 30 Jan 2015 10:24:06 +0800 Subject: [PATCH] =?UTF-8?q?=20#1896=20=20=20=E8=AF=BE=E7=A8=8B--=E9=97=AE?= =?UTF-8?q?=E5=8D=B7=E8=B0=83=E6=9F=A5--=E6=96=B0=E5=BB=BA=E9=A2=98?= =?UTF-8?q?=E7=9B=AE=E6=97=B6=E7=82=B9=E5=87=BB=E7=A1=AE=E5=AE=9A=E6=8C=89?= =?UTF-8?q?=E9=92=AE=E6=97=A0=E5=8F=8D=E5=BA=94?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/poll/_poll_form.html.erb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/poll/_poll_form.html.erb b/app/views/poll/_poll_form.html.erb index 05ca1e61f..658d8a9b7 100644 --- a/app/views/poll/_poll_form.html.erb +++ b/app/views/poll/_poll_form.html.erb @@ -25,13 +25,13 @@ } //添加标题时确定按钮 - function add_poll_question(obj) + function add_poll_question(doc) { var title = $.trim($("#poll_questions_title").val()); 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()); if(title.length == 0){alert("标题不能为空");}else{doc.parent().parent().parent().submit();}