Sha256: f7903f82b8ba0b804bc3e8ae092187d95367069cc3eec776c229c97d53cc1ef4

Contents?: true

Size: 557 Bytes

Versions: 10

Compression:

Stored size: 557 Bytes

Contents

<% @new_tasks.each do |task| %>
  jQuery('#events_table').prepend('<%=j render(partial: 'queue_dispatcher_views/task_event', locals: {task: task}) %>');
  jQuery('#task_<%= task.id %>').effect('highlight');
<% end %>

<% @updated_tasks.each do |task| %>
  jQuery('#task_<%= task.id %>').replaceWith('<%=j render(partial: 'queue_dispatcher_views/task_event', locals: {task: task}) %>');
  jQuery('#task_<%= task.id %>').effect('highlight');
<% end %>

<% @deleted_task_ids.each do |id| %>
  jQuery('#task_<%= id %>).fadeOut();
<% end %>

<%= update_flash %>

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
queue_dispatcher-1.1.9 app/views/queue_dispatcher_views/update_events.js.erb
queue_dispatcher-1.1.8 app/views/queue_dispatcher_views/update_events.js.erb
queue_dispatcher-1.1.7 app/views/queue_dispatcher_views/update_events.js.erb
queue_dispatcher-1.1.6 app/views/queue_dispatcher_views/update_events.js.erb
queue_dispatcher-1.1.5 app/views/queue_dispatcher_views/update_events.js.erb
queue_dispatcher-1.1.4 app/views/queue_dispatcher_views/update_events.js.erb
queue_dispatcher-1.1.3 app/views/queue_dispatcher_views/update_events.js.erb
queue_dispatcher-1.1.2 app/views/queue_dispatcher_views/update_events.js.erb
queue_dispatcher-1.1.1 app/views/queue_dispatcher_views/update_events.js.erb
queue_dispatcher-1.1.0 app/views/queue_dispatcher_views/update_events.js.erb