Do not set quantity of newly created OrderArticles to 1

This commit is contained in:
Julius 2014-01-01 23:45:57 +01:00 committed by wvengen
parent a384532619
commit 8e52fca304
6 changed files with 44 additions and 9 deletions

View file

@ -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);