|
|
|
@ -42,19 +42,19 @@
|
|
|
|
|
function (data) {
|
|
|
|
|
if(data == 1)
|
|
|
|
|
{
|
|
|
|
|
$("#setting_project_type").replaceWith("<%= escape_javascript(project_type_link(l(:label_development_team)))%>");
|
|
|
|
|
$("#setting_project_type").replaceWith("<%= escape_javascript(project_type_link(l(:label_development_team), 1))%>");
|
|
|
|
|
$("#project_memu_list").html('<%= escape_javascript(render(:partial => 'layouts/base_development_group')) %>');
|
|
|
|
|
$("#close_light").attr("onClick","close_window('development_group');");
|
|
|
|
|
}
|
|
|
|
|
else if(data == 2)
|
|
|
|
|
{
|
|
|
|
|
$("#setting_project_type").replaceWith("<%= escape_javascript(project_type_link(l(:label_research_group)))%>");
|
|
|
|
|
$("#setting_project_type").replaceWith("<%= escape_javascript(project_type_link(l(:label_research_group), 2))%>");
|
|
|
|
|
$("#project_memu_list").html('<%= escape_javascript(render(:partial => 'layouts/base_research_team')) %>');
|
|
|
|
|
$("#close_light").attr("onClick","close_window('research_group');");
|
|
|
|
|
}
|
|
|
|
|
else if(data == 3)
|
|
|
|
|
{
|
|
|
|
|
$("#setting_project_type").replaceWith("<%= escape_javascript(project_type_link(l(:label_friend_organization)))%>");
|
|
|
|
|
$("#setting_project_type").replaceWith("<%= escape_javascript(project_type_link(l(:label_friend_organization), 3))%>");
|
|
|
|
|
$("#project_memu_list").html('<%= escape_javascript(render(:partial => 'layouts/base_friend_group')) %>');
|
|
|
|
|
$("#close_light").attr("onClick","close_window('friend_organization');");
|
|
|
|
|
}
|
|
|
|
@ -116,7 +116,8 @@
|
|
|
|
|
<!--关注、申请加入/退出项目-->
|
|
|
|
|
<div id="join_exit_project_div">
|
|
|
|
|
<% text = @project.project_new_type == 1 ? l(:label_development_team) : (@project.project_new_type == 2 ? l(:label_research_group) : l(:label_friend_organization))%>
|
|
|
|
|
<%= render 'layouts/join_exit_project',{:text => text} %>
|
|
|
|
|
<% typeclass = @project.project_new_type == 1 ? "pr_kafa" : (@project.project_new_type == 2 ? "pr_keyan" : "pr_friend")%>
|
|
|
|
|
<%= render 'layouts/join_exit_project',{:text => text, :typeclass => typeclass} %>
|
|
|
|
|
</div>
|
|
|
|
|
<!-- 项目得分 -->
|
|
|
|
|
<div class="cl"></div>
|
|
|
|
@ -160,7 +161,9 @@
|
|
|
|
|
<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">
|
|
|
|
|
<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>
|
|
|
|
|
<% if User.current.allowed_to?(:manage_members, @project) %>
|
|
|
|
|
<li><%= link_to l(:label_invite_trustie_user), :controller=>"projects", :action=>"invite_members", :id => @project %></li>
|
|
|
|
|
<% end %>
|
|
|
|
|
</ul>
|
|
|
|
|
<% end %><!--end-->
|
|
|
|
|
<!--menu 左侧工具栏 -->
|
|
|
|
|