orbit-4-2/app/views/admin/mail_crons/delete.js.erb

5 lines
147 B
Plaintext

<% @mail_crons.collect do |mail_cron| %>
$("#<%= dom_id mail_cron %>").remove();
<% end %>
<% MailCron.any_in(:_id => params[:ids]).destroy_all %>