修复项目issue,编辑issue“完成度”为100%后,该issue历程被清空

This commit is contained in:
daiao 2016-11-16 13:36:57 +08:00
parent 0adde560ba
commit 05fcd32225
1 changed files with 5 additions and 1 deletions

View File

@ -160,5 +160,9 @@
}
// 里程碑添加默认选项
$("#issue_fixed_version_id option[value='']").remove();
<% if params[:action] == "new" %>
$('#issue_fixed_version_id').prepend("<option value='0' selected='selected'>选择里程碑</option>")
<% else %>
$('#issue_fixed_version_id').prepend("<option value='0'>选择里程碑</option>")
<% end %>
</script>