Mercurial > hg > soundsoftware-site
view app/views/attachments/toggle_active.js.erb @ 1286:d0d6bbe9f2e0 redmine-2.2-integration
removed unused code; renamed variables.
author | luisf <luis.figueira@eecs.qmul.ac.uk> |
---|---|
date | Tue, 14 May 2013 19:09:34 +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 %>');