Mercurial > hg > soundsoftware-site
view app/views/attachments/toggle_active.js.erb @ 1369:40e64d14e691 bibliography_testing
Correctly loading fixtures.
author | luisf <luis.figueira@eecs.qmul.ac.uk> |
---|---|
date | Wed, 21 Aug 2013 17:51:08 +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 %>');