view app/views/attachments/toggle_active.js.erb @ 1509:fae089e1f1a3 live

Layout fix
author Chris Cannam
date Fri, 21 Mar 2014 13:58:29 +0000
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 %>');