14 lines
361 B
Text
14 lines
361 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#destroy',
|
||
|
stock_article_id: <%= @stock_article.id %>
|
||
|
});
|