fix unit quantity display after ajax update

This commit is contained in:
wvengen 2014-01-03 10:45:15 +01:00
parent 5ead0fb441
commit f1ae2724c6
1 changed files with 2 additions and 2 deletions

View File

@ -4,8 +4,8 @@
// get old element and update the cell which is reused
var old_order_article_entry = $('#order_article_<%= @order_article.id %>');
$('.article_price_unit_quantity', old_order_article_entry).text(
'(× <%= @order_article.article_price.unit_quantity %>)'
$('td.units_received_cell .package', old_order_article_entry).text(
'× <%= @order_article.article_price.unit_quantity %>'
);
// render new element and inject dynamic cell