move receive screen to orders
This commit is contained in:
parent
94b4454a1b
commit
d299fa4870
10 changed files with 75 additions and 79 deletions
16
app/views/orders/add_article.js.erb
Normal file
16
app/views/orders/add_article.js.erb
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
$('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 = $(
|
||||
'<%= j(render(:partial => 'edit_article', :locals => {:order_article => @order_article})) %>'
|
||||
).addClass('success');
|
||||
|
||||
$('.ordered-articles tbody').append(article_for_adding);
|
||||
updateSort('.ordered-articles');
|
||||
|
||||
$('#order_articles_<%= @order_article.id %>_units_received').focus();
|
||||
})();
|
||||
Loading…
Add table
Add a link
Reference in a new issue