foodcoop-adam/foodsoft

View on GitHub
lib/foodsoft_current_orders/app/views/current_orders/articles/show_on_group_order_article_create.js.erb

Summary

Maintainability
Test Coverage
// Handle more advanced DOM update after AJAX database manipulation.
// See publish/subscribe design pattern in /doc.
(function(w) {
  $('#goa_<%= @goa.id %>').remove(); // just to be sure: remove table row which is added below
  $('#articles_by_articles tbody').append('<%= j render('shared/articles_by/article_single_goa', goa: @goa) %>').addClass('success');
})(window);