Commit 675e8782d35f21573d01a09f980ab37542d3dc13
1 parent
78293fab
Exists in
master
and in
29 other branches
invite-members: removing deprecated blocks in link_to_function
link_to_function doesn't take blocks as arguments since rails 3.1
Showing
1 changed file
with
1 additions
and
3 deletions
Show diff stats
app/views/invite/_personalize_invitation_mail.html.erb
1 | <br/> | 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 | <div id='invitation-mail_template' style='display:none'> | 5 | <div id='invitation-mail_template' style='display:none'> |
8 | <%= 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.") %> | 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.") %> |