# HG changeset patch # User Chris Cannam # Date 1358264722 0 # Node ID 651d2699348e9461fdf03ede7f71eff028a17b34 # Parent e1f00c0ed8ffec45bee890c03c44f1d1ddfda29c Fix remote syntax for Rails 3 (doesn't work though); html safe in label diff -r e1f00c0ed8ff -r 651d2699348e app/views/files/index.html.erb --- a/app/views/files/index.html.erb Tue Jan 15 15:39:59 2013 +0000 +++ b/app/views/files/index.html.erb Tue Jan 15 15:45:22 2013 +0000 @@ -35,9 +35,9 @@ <% if active_change_allowed active_id = "active-" + file.id.to_s -%>
- <%= link_to_remote image_tag(file.active? ? 'fav.png' : 'fav_off.png'), - :url => {:controller => 'attachments', :action => 'toggle_active', :project_id => @project.id, :id => file}, - :update => active_id + <%= link_to image_tag(file.active? ? 'fav.png' : 'fav_off.png'), + {:controller => 'attachments', :action => 'toggle_active', :project_id => @project.id, :id => file}, + :remote => true %>
<% else -%> @@ -65,6 +65,6 @@ -<%= l(:text_files_active_change) if active_change_allowed and have_file %> +<%= l(:text_files_active_change).html_safe if active_change_allowed and have_file %> <% html_title(l(:label_attachment_plural)) -%>