view app/views/attachments/toggle_active.js.erb @ 1268:2818bf60c84c redmine-2.2-integration

Mark intro text html safe
author Chris Cannam <chris.cannam@soundsoftware.ac.uk>
date Thu, 02 May 2013 12:48:44 +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 %>');