项目类型提示JS
This commit is contained in:
parent
d343ca8572
commit
4c71e2c256
|
@ -95,7 +95,16 @@ module ProjectsHelper
|
|||
end
|
||||
|
||||
# 项目类型描述
|
||||
|
||||
def project_newtype_descrption
|
||||
case params
|
||||
when 1
|
||||
value = l(:label_type_des_development)
|
||||
when 2
|
||||
value = l(:label_type_des_research)
|
||||
when 3
|
||||
value = l(:label_type_des_friend)
|
||||
end
|
||||
end
|
||||
|
||||
# 被邀请成员的状态
|
||||
def status_for_ivitied(ivite_list, project)
|
||||
|
|
|
@ -17,7 +17,8 @@
|
|||
<div class="cl"></div>
|
||||
<li class="ml45 mb10">
|
||||
<label><span class="c_red">*</span> <%= l(:label_type_project)%> :</label>
|
||||
<%= select_tag :project_new_type, options_for_select([["开发模式", "1"], ["研讨模式", "2"], ["圈子模式", "3"]]) %><span class=" ml15 c_orange">为团队提供系列在线开发工具!</span>
|
||||
<%= select_tag :project_new_type, options_for_select([["开发模式", "1"], ["研讨模式", "2"], ["圈子模式", "3"]]) %>
|
||||
<span class=" ml15 c_orange" id = "project_newtype_select">为团队提供系列在线开发工具!</span>
|
||||
</li>
|
||||
<div class="cl"></div>
|
||||
<li class="ml45">
|
||||
|
@ -90,12 +91,22 @@
|
|||
}
|
||||
}
|
||||
|
||||
$(document).ready(function(){
|
||||
$(function(){
|
||||
$('#project_new_type').change(function(){
|
||||
alert($(this).children('option:selected').val("开发模式:面向小组开发,支持问题跟踪、代码托管、论坛交流等所有功能。"));
|
||||
var p1=$(this).children('option:selected').val("研讨模式:面向小组研究,支持任务分工、论坛交流、资源分享等。");//这就是selected的值
|
||||
var type = $('#project_new_type').val();
|
||||
if(type == '1'){
|
||||
$(this).next().html("<%= l(:label_type_des_development)%>");
|
||||
}
|
||||
else if(type == '2'){
|
||||
$(this).next().html("<%= l(:label_type_des_research)%>");
|
||||
}
|
||||
else if(type == '3'){
|
||||
$(this).next().html("<%= l(:label_type_des_friend)%>");
|
||||
}
|
||||
// var p1=$(this).children('option:selected').val("研讨模式:面向小组研究,支持任务分工、论坛交流、资源分享等。");//这就是selected的值
|
||||
// var p2=$('#param2').val();//获取本页面其他标签的值
|
||||
})
|
||||
|
||||
})
|
||||
</script>
|
||||
|
||||
|
|
|
@ -61,6 +61,9 @@ zh:
|
|||
label_research_group: 研讨模式
|
||||
label_development_team: 开发模式
|
||||
label_type_project: 项目类型
|
||||
label_type_des_development: 开发模式:面向小组开发,支持问题跟踪、代码托管、论坛交流等所有功能。
|
||||
label_type_des_research: 研讨模式:面向小组研究,支持任务分工、论坛交流、资源分享等。
|
||||
label_type_des_friend: 圈子模式:面向好友分享,支持论坛交流、资源分享等。
|
||||
|
||||
label_member: 成员
|
||||
project_module_attachments: 资源
|
||||
|
|
Loading…
Reference in New Issue