Sha256: b3e40908e7ecb8612769cba9da11cd73067d91efa22a9a0304be21005184dd8b
Contents?: true
Size: 837 Bytes
Versions: 19
Compression:
Stored size: 837 Bytes
Contents
- partial = params[:assets].singularize - if @attached - if partial == "task" - if @attachment.completed? - view = "completed" - elsif @attachment.my?(current_user) - view = "pending" - else - view = "assigned" $('#tasks').prepend('#{ j render(:partial => "tasks/#{view}", :collection => [ @attachment ], :locals => { :bucket => @attachment.computed_bucket }) }'); - else $('##{h params[:assets]}').prepend('#{ j render(:partial => "#{params[:assets]}/#{partial}", :collection => [ @attachment ]) }'); - if called_from_landing_page?(:accounts) = refresh_sidebar_for(:accounts, :show, :summary) - elsif called_from_landing_page?(:campaigns) = refresh_sidebar_for(:campaigns, :show, :summary) $('##{partial}_#{h params[:asset_id]}').effect("highlight", { duration:1500 });
Version data entries
19 entries across 19 versions & 2 rubygems