|
|
|
@ -11,9 +11,9 @@
|
|
|
|
|
//如果有N个标签,就将i<=N;
|
|
|
|
|
for(var i=1;i<=3;i++){
|
|
|
|
|
g('issues_list_nav_'+i).className='issues_nav_nomal';
|
|
|
|
|
g('issues_list_content_'+i).className='undis';
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
g('issues_list_content_'+n).className='dis';
|
|
|
|
|
|
|
|
|
|
g('issues_list_nav_'+n).className='issues_nav_hover';
|
|
|
|
|
}
|
|
|
|
|
$(function(){
|
|
|
|
@ -78,6 +78,8 @@
|
|
|
|
|
|
|
|
|
|
function all_reset_form() {
|
|
|
|
|
$("#issue_query_form")[0].reset();
|
|
|
|
|
$("select[id='author_id']").val('');
|
|
|
|
|
$("select[id='assigned_to_id']").val('');
|
|
|
|
|
remote_function();
|
|
|
|
|
}
|
|
|
|
|
</script>
|
|
|
|
@ -103,7 +105,7 @@
|
|
|
|
|
<input class="hw_search-input" placeholder="请输入问题名称" type="text" id="v_subject" name="subject" onkeypress="EnterPress(event)" onkeydown="EnterPress()">
|
|
|
|
|
<a href="javascript:void(0);" class="hw_btn_search" onclick="remote_function();" ></a>
|
|
|
|
|
</div>
|
|
|
|
|
<a href="javascript:void(0);" class="sy_btn_grey fl ml5" onclick="nh_reset_form();">清除</a>
|
|
|
|
|
<a href="javascript:void(0);" class="sy_btn_grey fl ml5" onclick="HoverLi(1);all_reset_form();">清除</a>
|
|
|
|
|
|
|
|
|
|
<div class="calendar_div fr">
|
|
|
|
|
<input name="issue_create_date_end" nhname="date_val" type="hidden"/>
|
|
|
|
@ -121,7 +123,7 @@
|
|
|
|
|
|
|
|
|
|
<div class="issues_con_list" style="position: relative;">
|
|
|
|
|
<ul id="issues_list_nav" >
|
|
|
|
|
<li id="issues_list_nav_1" class="issues_nav_hover" onclick="HoverLi(1);nh_reset_form();">
|
|
|
|
|
<li id="issues_list_nav_1" class="issues_nav_hover" onclick="HoverLi(1);all_reset_form();">
|
|
|
|
|
<a href="javascript:void(0);" onclick="all_reset_form();" id="issues_type_1" >所有<span class="issues_nav_tag ml5"><%= @project.project_score.issue_num %></span></a>
|
|
|
|
|
</li>
|
|
|
|
|
<li id="issues_list_nav_2" onclick="HoverLi(2);">
|
|
|
|
@ -147,7 +149,7 @@
|
|
|
|
|
%>
|
|
|
|
|
<%= select(:issue, :fixed_version, options_for_version_isuue_list(@project),
|
|
|
|
|
{:include_blank => false, :selected => @fixed_version_id ? @fixed_version_id : 0},
|
|
|
|
|
{:onchange => "remote_function();", :id => "fixed_version_id", :name => "fixed_version_id", :class => "f1"}) %>
|
|
|
|
|
{:onchange => "remote_function();", :id => "fixed_version_id", :name => "fixed_version_id", :class => "fl"}) %>
|
|
|
|
|
|
|
|
|
|
<%= select( :issue,:status, [["新增",1],["正在解决",2],["已解决",3],["反馈",4],["关闭",5],["拒绝",6]].unshift(["状态",0]),
|
|
|
|
|
{ :include_blank => false,:selected=>@status_id ? @status_id : 0
|
|
|
|
@ -170,10 +172,20 @@
|
|
|
|
|
{:onchange=>"remote_function();",:id=>"done_ratio",:name=>"done_ratio",:class=>"fl"}) %>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<%= select(:issue, :test, [["最新创建",1],["最早创建",2],["最近更新",3],["最早更新", 4]].unshift(["排序",0]),
|
|
|
|
|
<%#= select(:issue, :test, [["最新创建",1],["最早创建",2],["最近更新",3],["最早更新", 4]].unshift(["排序",0]),
|
|
|
|
|
{:include_blank => false, :selected => @order ? @order : 0 },
|
|
|
|
|
{:onchange => "remote_function();", :id => "test", :name => "test", :class => "fr issues_filter_select_min"}) %>
|
|
|
|
|
|
|
|
|
|
<%= select(:issue, :test, [["最新创建",1],["最早创建",2],["最近更新",3],["最早更新", 4]].unshift(["排序",0]),
|
|
|
|
|
{:include_blank => false, :selected => @test ? @test : 0 },
|
|
|
|
|
{:onchange => "remote_function();", :id => "test", :name => "test", :class => "fr issues_filter_select_min"}) %>
|
|
|
|
|
|
|
|
|
|
<%= select( :issue,:user_id, @project.members.order("lower(users.login)").map{|c| [c.name, c.user_id]}.unshift(["作者",0]),
|
|
|
|
|
{ :include_blank => false,:selected=>@author_id ? @author_id : 0},
|
|
|
|
|
{:onchange=>"remote_function();",:id=>"author_id",:name=>"author_id",:style=>"display:none;"}
|
|
|
|
|
)
|
|
|
|
|
%>
|
|
|
|
|
|
|
|
|
|
<%#= select( :issue,:user_id, @project.members.order("lower(users.login)").map{|c| [c.name, c.user_id]}.unshift(["作者",0]),
|
|
|
|
|
{ :include_blank => false,:selected=>@author_id ? @author_id : 0
|
|
|
|
|
},
|
|
|
|
|