Sha256: 3312a3452d9a70b4870792d48945dbb1a44c462d5305863021f4670a110e4972

Contents?: true

Size: 761 Bytes

Versions: 6

Compression:

Stored size: 761 Bytes

Contents

<% @new_tasks.each do |task| %>
  jQuery('#events_table').prepend('<%=j render(partial: 'queue_dispatcher_views/task_event', locals: {task: task, show_ids:  defined?(show_ids) ? show_ids : false, id_prefix: defined?(id_prefix) ? id_prefix : '' }) %>');
  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, show_ids:  defined?(show_ids) ? show_ids :    false, id_prefix: defined?(id_prefix) ? id_prefix : '' }) %>');
  jQuery('#task_<%= task.id %>').effect('highlight');
<% end %>

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

<%= update_flash %>

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
queue_dispatcher-2.5.3 app/views/queue_dispatcher_views/update_events.js.erb
queue_dispatcher-2.3.0 app/views/queue_dispatcher_views/update_events.js.erb
queue_dispatcher-2.1.0 app/views/queue_dispatcher_views/update_events.js.erb
queue_dispatcher-1.5.1 app/views/queue_dispatcher_views/update_events.js.erb
queue_dispatcher-1.3.1 app/views/queue_dispatcher_views/update_events.js.erb
queue_dispatcher-1.3.0 app/views/queue_dispatcher_views/update_events.js.erb