Mercurial > hg > soundsoftware-site
view app/views/attachments/toggle_active.js.erb @ 1158:00e9a262ffe5 redmine-2.2-integration
Fix Javascript so as to update star properly
author | Chris Cannam <chris.cannam@soundsoftware.ac.uk> |
---|---|
date | Tue, 15 Jan 2013 16:08:00 +0000 |
parents | 2f6e71e31b55 |
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 %>');