From fcaeb866871a25d5e8bf1fb1b748509152d04b86 Mon Sep 17 00:00:00 2001 From: linhk <304431313@.com> Date: Sat, 16 Aug 2014 10:49:27 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A1=B9=E7=9B=AE=E2=80=98=E8=AF=BE=E7=A8=8B?= =?UTF-8?q?=20=E6=B7=BB=E5=8A=A0=E6=88=90=E5=91=98=E6=98=BE=E7=A4=BABug?= =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/helpers/members_helper.rb | 1 + app/views/members/autocomplete.js.erb | 11 +++++++++++ app/views/projects/settings/_members.html.erb | 14 ++++++++++++++ 3 files changed, 26 insertions(+) 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