annotate app/views/attachments/toggle_active.js.erb @ 1366:7e85f7988ab8
luisf
Fixes another possible cause for Bug #658 - was not saving publication when author was new...
author |
luisf <luis.figueira@eecs.qmul.ac.uk> |
date |
Mon, 19 Aug 2013 16:23:24 +0100 |
parents |
00e9a262ffe5 |
children |
|
rev |
line source |
chris@1158
|
1 $('#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 %>');
|