15 lines
397 B
Text
15 lines
397 B
Text
$('div.container-fluid').prepend('<%= j(render(
|
|
:partial => 'shared/alert_success',
|
|
:locals => {
|
|
:alert_message => t('.notice', :name => @stock_article.name)
|
|
}
|
|
)) %>');
|
|
|
|
// Publish database changes.
|
|
// See publish/subscribe design pattern in /doc.
|
|
$(document).trigger({
|
|
type: 'StockArticle#update',
|
|
stock_article_id: <%= @stock_article.id %>
|
|
});
|
|
|
|
$('#modalContainer').modal('hide');
|