From f1ae2724c651b6596e5fac2a97b3e4bd2ab2b87e Mon Sep 17 00:00:00 2001 From: wvengen Date: Fri, 3 Jan 2014 10:45:15 +0100 Subject: [PATCH] fix unit quantity display after ajax update --- app/views/orders/receive_on_order_article_update.js.erb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/orders/receive_on_order_article_update.js.erb b/app/views/orders/receive_on_order_article_update.js.erb index 003c79df..dd434585 100644 --- a/app/views/orders/receive_on_order_article_update.js.erb +++ b/app/views/orders/receive_on_order_article_update.js.erb @@ -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