foodsoft/app/views/orders/add_article.js.erb

17 lines
575 B
Plaintext
Raw Normal View History

$('div.container-fluid').prepend(
'<%= j(render(:partial => 'shared/alert_success', :locals => {:alert_message => t('.notice', :name => @order_article.article.name)})) %>'
);
(function() {
$('.ordered-articles tr').removeClass('success');
var article_for_adding = $(
2013-12-18 22:16:19 +01:00
'<%= j(render(:partial => 'edit_amount', :locals => {:order_article => @order_article})) %>'
).addClass('success');
$('.ordered-articles tbody').append(article_for_adding);
updateSort('.ordered-articles');
2013-11-26 13:00:34 +01:00
$('#order_articles_<%= @order_article.id %>_units_received').focus();
})();