use helper in ajax update too

This commit is contained in:
wvengen 2014-01-03 14:52:44 +01:00
parent 133429720c
commit b800da9b9b
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 %>');
$('td.units_received_cell .package', old_order_article_entry).text(
'× <%= @order_article.article_price.unit_quantity %>'
$('td.units_received_cell span.package', old_order_article_entry).replaceWith(
'<%= j pkg_helper(@order_article.article_price, false) %>'
);
// render new element and inject dynamic cell