#948 admin配置管理--用户列表--项目列表:如图下拉框显示超出边框且项目问题,解决,说小选项长度,添加title属性,鼠标悬停时显示选项的完整信息

This commit is contained in:
z9hang 2014-10-25 15:34:38 +08:00
parent 49beaa4f42
commit 30e355fa35
2 changed files with 6 additions and 1 deletions

View File

@ -460,6 +460,7 @@ module ApplicationHelper
project_tree(projects) do |project, level| project_tree(projects) do |project, level|
name_prefix = (level > 0 ? ' ' * 2 * level + '» ' : '').html_safe name_prefix = (level > 0 ? ' ' * 2 * level + '» ' : '').html_safe
tag_options = {:value => project.id} tag_options = {:value => project.id}
tag_options[:title] = project.name
if project == options[:selected] || (options[:selected].respond_to?(:include?) && options[:selected].include?(project)) if project == options[:selected] || (options[:selected].respond_to?(:include?) && options[:selected].include?(project))
tag_options[:selected] = 'selected' tag_options[:selected] = 'selected'
else else

View File

@ -2835,3 +2835,7 @@ div.repos_explain{
.projects-index{min-height: 350px} .projects-index{min-height: 350px}
.school-index{min-height: 400px} .school-index{min-height: 400px}
#membership_project_id option
{
width: 190px;
}