mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-06-23 20:00:33 -04:00
Country not updated in PDF preview #1608
This commit is contained in:
parent
217f502501
commit
d9da272be5
@ -930,11 +930,9 @@
|
|||||||
ko.applyBindings(model);
|
ko.applyBindings(model);
|
||||||
onItemChange(true);
|
onItemChange(true);
|
||||||
|
|
||||||
|
$('#client\\[country_id\\]').on('change', function(e) {
|
||||||
$('#country_id').combobox().on('change', function(e) {
|
var countryId = $(e.currentTarget).val();
|
||||||
var countryId = $('input[name=country_id]').val();
|
var country = _.findWhere(countries, {id: parseInt(countryId)});
|
||||||
var country = _.findWhere(countries, {id: countryId});
|
|
||||||
console.log(countryId + ' - ' + country);
|
|
||||||
if (country) {
|
if (country) {
|
||||||
model.invoice().client().country = country;
|
model.invoice().client().country = country;
|
||||||
model.invoice().client().country_id(countryId);
|
model.invoice().client().country_id(countryId);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user