选中日期后,点清除或所有失效的问题

This commit is contained in:
daiao 2016-09-27 09:57:44 +08:00
parent b2ed335146
commit 50741ad2a6
1 changed files with 10 additions and 9 deletions

View File

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