Commit 675e8782d35f21573d01a09f980ab37542d3dc13

Authored by Larissa Reis
1 parent 78293fab

invite-members: removing deprecated blocks in link_to_function

  link_to_function doesn't take blocks as arguments since rails 3.1
app/views/invite/_personalize_invitation_mail.html.erb
1 1 <br/>
2 2  
3   -<%= link_to_function(_('Personalize invitation mail'), nil) do |page|
4   - page['invitation-mail_template'].show
5   -end %>
  3 +<%= link_to_function _('Personalize invitation mail'), '$(\'invitation-mail_template\').show()' %>
6 4  
7 5 <div id='invitation-mail_template' style='display:none'>
8 6 <%= h _("Now enter an invitation message. You must keep the <url> code in your invitation text. When your friends receive the invitation e-mail, <url> will be replaced by a link that they need to click to activate their account. <user> and <friend> codes will be replaced by your name and friend name, but they are optional.") %>
... ...