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();
}