Apply AJAX for deleting a StockArticle

This commit is contained in:
Julius 2013-02-25 10:02:21 +01:00
parent a511da9ae3
commit ccf0d010b4
4 changed files with 13 additions and 5 deletions

View file

@ -64,8 +64,7 @@
%td= article.article_category.name
%td
= link_to "Bearbeiten", edit_stock_article_path(article), class: 'btn btn-mini'
= link_to "Löschen", article, :method => :delete, :confirm => "Bist Du sicher?",
class: 'btn btn-mini btn-danger'
= link_to "Löschen", article, :method => :delete, :confirm => "Bist Du sicher?", class: 'btn btn-mini btn-danger', :remote => true
.form-actions.unavailable
= submit_tag "Artikel zum Löschen vormerken", { :class => 'unavailable btn' }
%p