Mercurial > hg > soundsoftware-site
view app/views/attachments/toggle_active.js.erb @ 1349:4ff3f8b81ab3 luisf
Merge from live.
author | luisf <luis.figueira@eecs.qmul.ac.uk> |
---|---|
date | Thu, 11 Jul 2013 17:32:32 +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 %>');