2013-06-13 23:33:24 +02:00
|
|
|
$('div.container-fluid').prepend(
|
|
|
|
'<%= j(render(:partial => 'shared/alert_success', :locals => {:alert_message => t('.notice', :name => @stock_article.name)})) %>'
|
|
|
|
);
|
|
|
|
|
2013-06-26 19:57:38 +02:00
|
|
|
(function() {
|
|
|
|
$('#stock_articles_for_adding tr').removeClass('success');
|
|
|
|
|
|
|
|
var stock_article_for_adding = $(
|
2013-06-13 23:33:24 +02:00
|
|
|
'<%= j(render(:partial => 'stock_article_for_adding', :locals => {:article => @stock_article})) %>'
|
2013-06-26 19:57:38 +02:00
|
|
|
).addClass('success');
|
|
|
|
|
|
|
|
$('#stock_articles_for_adding tbody').append(stock_article_for_adding);
|
|
|
|
updateSort('#stock_articles_for_adding');
|
|
|
|
})();
|
2013-06-13 23:33:24 +02:00
|
|
|
|
|
|
|
$('#modalContainer').modal('hide');
|