foodcoop-adam/foodsoft

View on GitHub
app/views/finance/balancing/new_on_order_article_update.js.erb

Summary

Maintainability
Test Coverage
// Handle more advanced DOM update after AJAX database manipulation.
// See publish/subscribe design pattern in /doc.
(function(w) {
  $('#order_article_<%= @order_article.id %>').html(
    '<%= j render('finance/balancing/order_article', order_article: @order_article) %>'
  );
  
  $('#group_order_articles_<%= @order_article.id %>').html(
    '<%= j render('finance/balancing/group_order_articles', order_article: @order_article) %>'
  );
  
  $('#summaryChangedWarning').show();
})(window);