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

5 lines
No EOL
181 B
Text

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