foodsoft/app/views/stock_takings/new_on_stock_article_create.js.erb
2019-05-14 14:24:41 +00:00

14 lines
418 B
Text

// Handle more advanced DOM update after AJAX database manipulation.
// See publish/subscribe design pattern in /doc.
(function() {
$('#stock_changes p').removeClass('alert alert-success');
var stock_change = $('<%= j(render(
:partial => 'stock_change',
:locals => {
:stock_change => @stock_change
}
)) %>').addClass('alert alert-success');
$('#stock_changes').prepend(stock_change);
})();