From 50741ad2a6149d3cd5a970070c5201546a3d9fda Mon Sep 17 00:00:00 2001 From: daiao <358551898@qq.com> Date: Tue, 27 Sep 2016 09:57:44 +0800 Subject: [PATCH] =?UTF-8?q?=E9=80=89=E4=B8=AD=E6=97=A5=E6=9C=9F=E5=90=8E?= =?UTF-8?q?=EF=BC=8C=E7=82=B9=E6=B8=85=E9=99=A4=E6=88=96=E6=89=80=E6=9C=89?= =?UTF-8?q?=E5=A4=B1=E6=95=88=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/issues/index.html.erb | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/app/views/issues/index.html.erb b/app/views/issues/index.html.erb index 469a3a843..ec5849abd 100644 --- a/app/views/issues/index.html.erb +++ b/app/views/issues/index.html.erb @@ -43,11 +43,11 @@ // } // }); } - function nh_reset_form() { - $("#issue_query_form")[0].reset(); - $("input[nhname='date_val']").val('');//涛哥的火狐reset 清不掉这个值 我擦 - remote_function(); - } + // function nh_reset_form() { + // $("#issue_query_form")[0].reset(); + // $("input[nhname='date_val']").val('');//涛哥的火狐reset 清不掉这个值 我擦 + // remote_function(); + // } function EnterPress(e){ var e = e || window.event; @@ -58,9 +58,9 @@ // 点击的时候让过滤条件选中assign_to function switch_assign_to(assign) { - var assign = "option[value =" + assign + "]" + var assign = "option[value =" + assign + "]"; $("#issues_type_2").click(function(){ - + $("select[id='author_id']").val(''); }); $("select[id='assigned_to_id']").find(assign).attr("selected", "selected"); remote_function(); @@ -68,18 +68,19 @@ // 点击的时候让过滤条件选中user_id function createByMe(user_id) { - var user = "option[value =" + user_id + "]" + var user = "option[value =" + user_id + "]"; $("#createByMe").click(function(){ }); $("select[id='author_id']").find(user).attr("selected", "selected"); remote_function(); } - + // 清楚表单所有选项 function all_reset_form() { $("#issue_query_form")[0].reset(); $("select[id='author_id']").val(''); $("select[id='assigned_to_id']").val(''); + $("input[nhname='date_val']").val(''); remote_function(); }