Apply publish/subscribe for OrderArticle#create

This commit is contained in:
Julius 2013-12-31 13:25:29 +01:00 committed by wvengen
parent 5349ee142e
commit 59c118a171
6 changed files with 35 additions and 3 deletions

View file

@ -11,6 +11,15 @@
contentType: 'application/json; charset=UTF-8'
});
});
$(document).on('OrderArticle#create', function(e) {
$.ajax({
url: '#{new_on_order_article_create_finance_order_path(@order)}',
type: 'get',
data: {order_article_id: e.order_article_id},
contentType: 'application/json; charset=UTF-8'
});
});
});
- title t('.title', name: @order.name)