Apply publish/subscribe for OrderArticle#update
This commit is contained in:
parent
27a73be68f
commit
81dfe8110c
6 changed files with 46 additions and 4 deletions
9
app/views/finance/order_articles/update.js.erb
Normal file
9
app/views/finance/order_articles/update.js.erb
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
// Publish database changes.
|
||||
// See publish/subscribe design pattern in /doc.
|
||||
$(document).trigger({
|
||||
type: 'OrderArticle#update',
|
||||
order_article_id: <%= @order_article.id %>
|
||||
});
|
||||
|
||||
$('#modalContainer').modal('hide');
|
||||
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
$('#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();
|
||||
Loading…
Add table
Add a link
Reference in a new issue