Sha256: 7e2a945ae8da812ee968e088d291d44732186fe7611246c54b2959e6a00776e8
Contents?: true
Size: 707 Bytes
Versions: 19
Compression:
Stored size: 707 Bytes
Contents
- if called_from_index_page? # Completing from pending tasks view -- fade out task partial and update sidebar. $('##{dom_id(@task, :tools)}').hide(); $('##{dom_id(@task)}').fadeOut({ duration:500 }); - if @empty_bucket $('#list_#{@empty_bucket}').fadeOut({ duration:500 }); = refresh_sidebar(:index, :filters) - else # Completing from the Asset page -- replace task partial with completed one. $('##{dom_id(@task)}').hide(); $('##{dom_id(@task)}').html('#{ j render(:partial => "tasks/completed", :collection => [ @task ], :locals => { :bucket => nil }) }'); $('##{dom_id(@task)}').fadeIn({ duration:500 }); $('#recently').replaceWith('#{ j render(:partial => "shared/recently") }');
Version data entries
19 entries across 19 versions & 2 rubygems