Commit 848805e6e1e52f7a3fcd8f4b67bce58e91693eea
Committed by
Antonio Terceiro
1 parent
f5a60bea
Exists in
master
and in
29 other branches
ActionItem992: adding scrollbar to "invite friends" e-mail listing
Showing
2 changed files
with
15 additions
and
7 deletions
Show diff stats
app/views/friends/invite.rhtml
... | ... | @@ -61,13 +61,15 @@ |
61 | 61 | <%= link_to_function __('Check all'), "$$('input.friend_to_invite').each(function(checkbox) { checkbox.checked = true; });" %> |
62 | 62 | <%= link_to_function __('Uncheck all'), "$$('input.friend_to_invite').each(function(checkbox) { checkbox.checked = false; });" %> |
63 | 63 | <% friend_pos = 0 %> |
64 | - <% @friends.each do |friend| %> | |
65 | - <% friend_pos += 1 %> | |
66 | - <p> | |
67 | - <%= hidden_field_tag("webmail_friends[]", friend.to_yaml) %> | |
68 | - <%= check_box_tag("webmail_import_addresses[]", friend[2], (!@webmail_import_addresses || @webmail_import_addresses.include?(friend[2])), :id => "friends_to_invite_#{friend_pos}", :class => "friend_to_invite" ) %><label for="<%= "friends_to_invite_#{friend_pos}" %>"><%= "#{friend[0]} (#{friend[1]})" %></label> | |
69 | - </p> | |
70 | - <% end %> | |
64 | + <div id='friends-list'> | |
65 | + <% @friends.each do |friend| %> | |
66 | + <% friend_pos += 1 %> | |
67 | + <p> | |
68 | + <%= hidden_field_tag("webmail_friends[]", friend.to_yaml) %> | |
69 | + <%= check_box_tag("webmail_import_addresses[]", friend[2], (!@webmail_import_addresses || @webmail_import_addresses.include?(friend[2])), :id => "friends_to_invite_#{friend_pos}", :class => "friend_to_invite" ) %><label for="<%= "friends_to_invite_#{friend_pos}" %>"><%= "#{friend[0]} (#{friend[1]})" %></label> | |
70 | + </p> | |
71 | + <% end %> | |
72 | + </div> | |
71 | 73 | </div> |
72 | 74 | <% end -%> |
73 | 75 | ... | ... |