foodsoft/app/views/stockit/index_on_stock_article_update.js.erb

12 lines
366 B
Text

// Handle more advanced DOM update after AJAX database manipulation.
// See publish/subscribe design pattern in /doc.
(function() {
var stock_article_row = $('<%= j(render(
:partial => 'stock_article',
:locals => {
:stock_article => @stock_article
}
)) %>');
$('#stockArticle-<%= @stock_article.id %>').replaceWith(stock_article_row);
})();