From 217f502501e5c7edf284af0b17658993d42968d0 Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Wed, 16 Aug 2017 15:45:55 +0300 Subject: [PATCH] Fix for creative design --- resources/views/invoices/edit.blade.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/resources/views/invoices/edit.blade.php b/resources/views/invoices/edit.blade.php index 44e77c57f558..8ca9195653b4 100644 --- a/resources/views/invoices/edit.blade.php +++ b/resources/views/invoices/edit.blade.php @@ -639,7 +639,8 @@ {!! Former::select('client[country_id]') ->label(trans('texts.country_id')) ->addOption('','')->addGroupClass('country_select') - ->fromQuery($countries, 'name', 'id')->data_bind("dropdown: country_id") !!} + ->fromQuery($countries, 'name', 'id') + ->data_bind("dropdown: country_id") !!} @@ -933,6 +934,7 @@ $('#country_id').combobox().on('change', function(e) { var countryId = $('input[name=country_id]').val(); var country = _.findWhere(countries, {id: countryId}); + console.log(countryId + ' - ' + country); if (country) { model.invoice().client().country = country; model.invoice().client().country_id(countryId);