Apply publish/subscribe for OrderArticle#create
This commit is contained in:
parent
5349ee142e
commit
59c118a171
6 changed files with 35 additions and 3 deletions
9
app/views/order_articles/create.js.erb
Normal file
9
app/views/order_articles/create.js.erb
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
// Publish database changes.
|
||||
// See publish/subscribe design pattern in /doc.
|
||||
$(document).trigger({
|
||||
type: 'OrderArticle#create',
|
||||
order_article_id: <%= @order_article.id %>
|
||||
});
|
||||
|
||||
$('#modalContainer').modal('hide');
|
||||
|
||||
|
|
@ -1,3 +0,0 @@
|
|||
$('#modalContainer').modal('hide');
|
||||
$('#result_table').prepend('#{j(render('finance/balancing/order_article_result', order_article: @order_article))}');
|
||||
$('#summaryChangedWarning').show();
|
||||
Loading…
Add table
Add a link
Reference in a new issue