Do not set quantity of newly created OrderArticles to 1
This commit is contained in:
parent
a384532619
commit
8e52fca304
6 changed files with 44 additions and 9 deletions
|
|
@ -1,9 +1,15 @@
|
|||
// Handle more advanced DOM update after AJAX database manipulation.
|
||||
// See publish/subscribe design pattern in /doc.
|
||||
(function(w) {
|
||||
$('#result_table').prepend(
|
||||
$('#order_article_<%= @order_article.id %>').remove(); // just to be sure: remove table row which is added below
|
||||
|
||||
$('#ordered-articles tr').removeClass('success');
|
||||
|
||||
var order_article_entry = $(
|
||||
'<%= j render('finance/balancing/order_article_result', order_article: @order_article) %>'
|
||||
);
|
||||
).addClass('success');
|
||||
|
||||
$('#result_table').prepend(order_article_entry);
|
||||
|
||||
$('#summaryChangedWarning').show();
|
||||
})(window);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue