use helper in ajax update too

This commit is contained in:
wvengen 2014-01-03 14:52:44 +01:00
parent 133429720c
commit b800da9b9b

View file

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