项目‘课程 添加成员显示Bug修改
This commit is contained in:
parent
ace256bea1
commit
fcaeb86687
|
@ -31,6 +31,7 @@ module MembersHelper
|
||||||
}
|
}
|
||||||
|
|
||||||
s + content_tag('div', content_tag('ul', links), :class => 'pagination_new')
|
s + content_tag('div', content_tag('ul', links), :class => 'pagination_new')
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
# add by nwb
|
# add by nwb
|
||||||
|
|
|
@ -3,3 +3,14 @@ $('#principals_for_new_member').html('<%= escape_javascript(render_principals_fo
|
||||||
<% elsif @course%>
|
<% elsif @course%>
|
||||||
$('#principals_for_new_member').html('<%= escape_javascript(render_principals_for_new_course_members(@course)) %>');
|
$('#principals_for_new_member').html('<%= escape_javascript(render_principals_for_new_course_members(@course)) %>');
|
||||||
<%end%>
|
<%end%>
|
||||||
|
var collection=$("#principals_for_new_member").children("#principals").children("label");
|
||||||
|
collection.css("text-overflow","ellipsis");
|
||||||
|
collection.css("white-space","nowrap");
|
||||||
|
collection.css("width","200px");
|
||||||
|
collection.css("overflow","hidden");
|
||||||
|
for(i=0;i<collection.length;i++){ //增加悬浮显示
|
||||||
|
var label=collection[i];
|
||||||
|
var text=$(label).text();
|
||||||
|
$(label).attr("title",text);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
|
@ -130,3 +130,17 @@
|
||||||
<% end %>
|
<% end %>
|
||||||
<% end %>
|
<% end %>
|
||||||
</div>
|
</div>
|
||||||
|
<script type="text/javascript">
|
||||||
|
$(document).ready(function () {
|
||||||
|
var collection=$("#principals_for_new_member").children("#principals").children("label");
|
||||||
|
collection.css("text-overflow","ellipsis");
|
||||||
|
collection.css("white-space","nowrap");
|
||||||
|
collection.css("width","200px");
|
||||||
|
collection.css("overflow","hidden");
|
||||||
|
for(i=0;i<collection.length;i++){ //增加悬浮显示
|
||||||
|
var label=collection[i];
|
||||||
|
var text=$(label).text();
|
||||||
|
$(label).attr("title",text);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
</script>
|
Loading…
Reference in New Issue