Merge branch 'dev_newproject' into develop
This commit is contained in:
commit
3e497d8621
|
@ -73,7 +73,7 @@
|
|||
<label class="fl ml5" for="issue_is_private" id="issue_is_private_tips"><%= l(:field_set_private_tips)%></label>
|
||||
<% end %>
|
||||
</li>
|
||||
<li class=" clear">
|
||||
<li class=" clear" id="versions_assigned_id">
|
||||
<% if @issue.safe_attribute? 'assigned_to_id' %>
|
||||
<%= f.select :assigned_to_id, assigned_options_for_select(@issue.assignable_users, @issue.assigned_to),
|
||||
{:required => @issue.required_attribute?('assigned_to_id'), :no_label => true},
|
||||
|
@ -83,7 +83,7 @@
|
|||
<li class=" clear" id="assigned_to_tips">
|
||||
<%= @issue.assigned_to.nil? ? "未指派" : "已指派" %>
|
||||
</li>
|
||||
<li class=" clear" id="versions_choise_id">
|
||||
<li class=" clear" >
|
||||
<%= f.select :fixed_version_id, version_options_for_select(@issue.assignable_versions, @issue.fixed_version),
|
||||
{:include_blank => true, :required => @issue.required_attribute?('fixed_version_id'), :no_label => true},
|
||||
{:onchange => "change_milestone_tip();",:class => "w150"} %>
|
||||
|
@ -134,10 +134,18 @@
|
|||
<% end %>
|
||||
<script>
|
||||
function change_assigned_tip() {
|
||||
$('#assigned_to_tips').html("已指派");
|
||||
if( document.getElementById('issue_assigned_to_id').options[document.getElementById('issue_assigned_to_id').selectedIndex].value == 0 ){
|
||||
$('#assigned_to_tips').html("未指派");
|
||||
}
|
||||
else{
|
||||
$('#assigned_to_tips').html("已指派")};
|
||||
}
|
||||
function change_milestone_tip(){
|
||||
$('#milestone_option_tips').html("已指派里程碑");
|
||||
function change_milestone_tip(version_id){
|
||||
if( document.getElementById('issue_fixed_version_id').options[document.getElementById('issue_fixed_version_id').selectedIndex].value == 0 ){
|
||||
$('#milestone_option_tips').html("未指派里程碑")}
|
||||
else{
|
||||
$('#milestone_option_tips').html("已指派里程碑")
|
||||
};
|
||||
}
|
||||
function issue_start_date_change(){
|
||||
$('#option_start_date_tips').html("已选择开始日期");
|
||||
|
|
Loading…
Reference in New Issue