From 9c21a14c7eee815471d9c4c10f2fd4702d3c88ee Mon Sep 17 00:00:00 2001 From: Benjamin Meichsner Date: Mon, 8 Apr 2013 14:26:40 +0200 Subject: [PATCH] Update group results when editing order article in balancing. --- app/views/finance/order_articles/create.js.haml | 1 + app/views/finance/order_articles/update.js.haml | 2 ++ 2 files changed, 3 insertions(+) diff --git a/app/views/finance/order_articles/create.js.haml b/app/views/finance/order_articles/create.js.haml index 8498e09c..cc43206e 100644 --- a/app/views/finance/order_articles/create.js.haml +++ b/app/views/finance/order_articles/create.js.haml @@ -1,2 +1,3 @@ $('#modalContainer').modal('hide'); $('#result_table').prepend('#{j(render('finance/balancing/order_article_result', order_article: @order_article))}'); +$('#summaryChangedWarning').show(); \ No newline at end of file diff --git a/app/views/finance/order_articles/update.js.haml b/app/views/finance/order_articles/update.js.haml index 1e895329..36e66ccd 100644 --- a/app/views/finance/order_articles/update.js.haml +++ b/app/views/finance/order_articles/update.js.haml @@ -1,2 +1,4 @@ $('#modalContainer').modal('hide'); $('#order_article_#{@order_article.id}').html('#{j(render('finance/balancing/order_article', order_article: @order_article))}'); +$('#group_order_articles_#{@order_article.id}').html('#{j(render('finance/balancing/group_order_articles', order_article: @order_article))}'); +$('#summaryChangedWarning').show(); \ No newline at end of file