foodsoft/app/views/articles/destroy.js.erb

5 lines
No EOL
165 B
Text

<% if @order %>
$('#<%= @article.id %>').after('<%= escape_javascript(render("destroy_active_article")) %>');
<% else %>
$('#<%= @article.id %>').remove();
<% end %>