Improve usability of supplier selection for stock_articles in delivery form

This commit is contained in:
Julius 2013-12-09 00:03:07 +01:00
parent 7eb64e3c9d
commit 30b35cdd11
5 changed files with 50 additions and 10 deletions

View file

@ -44,7 +44,7 @@
$.ajax({
url: '#{new_stock_article_path}',
type: 'get',
data: {stock_article: {name: selectedArticle.text}},
data: {stock_article: {name: selectedArticle.text, supplier_id: #{@supplier.id}}},
contentType: 'application/json; charset=UTF-8'
});
$('#new_stock_article').select2('data', null);