view app/views/attachments/toggle_active.js.erb @ 1515:d98d22a98252 live

Rails -> 3.2.18
author Chris Cannam <chris.cannam@soundsoftware.ac.uk>
date Wed, 07 May 2014 14:15:02 +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 %>');