项目邀请功能和项目更多功能点击事件
This commit is contained in:
parent
4afd9afd08
commit
19dd5a9879
|
@ -157,7 +157,7 @@
|
||||||
<!--邀请加入-->
|
<!--邀请加入-->
|
||||||
<div class="subNavBox">
|
<div class="subNavBox">
|
||||||
<% if User.current.member_of?(@project) %>
|
<% if User.current.member_of?(@project) %>
|
||||||
<div class="subNav currentDd currentDt subNav_jiantou"><%= l(:label_invite)%></div>
|
<div class="subNav currentDd currentDt subNav_jiantou" id="expand_tools_expand_invit" onclick="expand_tools_expand('invit');"><%= l(:label_invite)%></div>
|
||||||
<ul class="navContent " style="display:block">
|
<ul class="navContent " style="display:block">
|
||||||
<li><%= link_to l(:label_invite_new_user), :controller=>"projects", :action=>"invite_members_by_mail", :id => @project %></li>
|
<li><%= link_to l(:label_invite_new_user), :controller=>"projects", :action=>"invite_members_by_mail", :id => @project %></li>
|
||||||
<li><%= link_to l(:label_invite_trustie_user), :controller=>"projects", :action=>"invite_members", :id => @project %></li>
|
<li><%= link_to l(:label_invite_trustie_user), :controller=>"projects", :action=>"invite_members", :id => @project %></li>
|
||||||
|
|
|
@ -25,13 +25,21 @@ function submitSerch(content)
|
||||||
//
|
//
|
||||||
// })
|
// })
|
||||||
//})
|
//})
|
||||||
function expand_tools_expand()
|
function expand_tools_expand(content)
|
||||||
{
|
{
|
||||||
$("#expand_tools_expand").toggleClass("currentDd").siblings(".subNav").removeClass("currentDd");
|
if (content=="invit"){
|
||||||
$("#expand_tools_expand").toggleClass("currentDt").siblings(".subNav").removeClass("currentDt");
|
$("#expand_tools_expand_invit").toggleClass("currentDd").siblings(".subNav").removeClass("currentDd");
|
||||||
|
$("#expand_tools_expand_invit").toggleClass("currentDt").siblings(".subNav").removeClass("currentDt");
|
||||||
|
$("#expand_tools_expand_invit").next(".navContent").slideToggle(500).siblings(".navContent").slideUp(500);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
$("#expand_tools_expand").toggleClass("currentDd").siblings(".subNav").removeClass("currentDd");
|
||||||
|
$("#expand_tools_expand").toggleClass("currentDt").siblings(".subNav").removeClass("currentDt");
|
||||||
|
$("#expand_tools_expand").next(".navContent").slideToggle(500).siblings(".navContent").slideUp(500);
|
||||||
|
}
|
||||||
|
|
||||||
// 修改数字控制速度, slideUp(500)控制卷起速度
|
// 修改数字控制速度, slideUp(500)控制卷起速度
|
||||||
$("#expand_tools_expand").next(".navContent").slideToggle(500).siblings(".navContent").slideUp(500);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// 描述显示更多信息
|
// 描述显示更多信息
|
||||||
|
|
|
@ -494,3 +494,6 @@ p.percent {
|
||||||
|
|
||||||
/*导出*/
|
/*导出*/
|
||||||
a.atom { background: url(../images/feed.png) no-repeat 1px 50%; padding: 2px 0px 3px 16px; }
|
a.atom { background: url(../images/feed.png) no-repeat 1px 50%; padding: 2px 0px 3px 16px; }
|
||||||
|
p.other-formats { text-align: right; font-size:0.9em; color: #666; }
|
||||||
|
.other-formats span + span:before { content: "| "; }
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue