Mercurial > hg > soundsoftware-site
view app/views/attachments/toggle_active.js.erb @ 1307:06de38acb6b4 redmine-2.2-integration
escaping the html on two helper functions.
author | luisf <luis.figueira@eecs.qmul.ac.uk> |
---|---|
date | Mon, 17 Jun 2013 15:25:51 +0100 |
parents | 00e9a262ffe5 |
children |
line wrap: on
line source
$('#active-<%= @attachment.id %>').html('<%= link_to image_tag(@attachment.active? ? 'fav.png' : 'fav_off.png'), {:controller => 'attachments', :action => 'toggle_active', :project_id => @project.id, :id => @attachment}, :remote => true %>');