diff --git a/app/helpers/members_helper.rb b/app/helpers/members_helper.rb index ecfb097e9..6c11199fb 100644 --- a/app/helpers/members_helper.rb +++ b/app/helpers/members_helper.rb @@ -31,6 +31,7 @@ module MembersHelper } s + content_tag('div', content_tag('ul', links), :class => 'pagination_new') + end # add by nwb diff --git a/app/views/members/autocomplete.js.erb b/app/views/members/autocomplete.js.erb index e7a52f7f3..5ef01c04d 100644 --- a/app/views/members/autocomplete.js.erb +++ b/app/views/members/autocomplete.js.erb @@ -3,3 +3,14 @@ $('#principals_for_new_member').html('<%= escape_javascript(render_principals_fo <% elsif @course%> $('#principals_for_new_member').html('<%= escape_javascript(render_principals_for_new_course_members(@course)) %>'); <%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 <% end %> + \ No newline at end of file