changeset 1154:651d2699348e redmine-2.2-integration

Fix remote syntax for Rails 3 (doesn't work though); html safe in label
author Chris Cannam <chris.cannam@soundsoftware.ac.uk>
date Tue, 15 Jan 2013 15:45:22 +0000
parents e1f00c0ed8ff
children a34a06ba1e33
files app/views/files/index.html.erb
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- 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 -%>
         <div id="<%= active_id %>">
-        <%= 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
         %>
         </div>
       <% else -%>
@@ -65,6 +65,6 @@
   </tbody>
 </table>
 
-<%= 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)) -%>