- //'country' : {
- // type : 'select',
- // id : 'country',
- // title : 'Country',
- // dataStoreId : 'countries',
- // value : '',
- // onChange : function () {
- // if (!App.DataStore.getItem('BuildSelect:country', false))
- // {
- // App.DataStore.loadSelectListData(
- // 'regions', false, 'Location', 'Region.SelectList', null,
- // {"Filter": {
- // "country" : $(this).val()
- // }}
- // );
- // App.DataStore.setData('cities', []);
- // if ($('#sameAsBusinessAddress').prop('checked'))
- // {
- // $('#billingCountry').selectpicker('val', $('#country').val());
- // }
- // }
- // }
- //},
- //'region' : {
- // type : 'select',
- // id : 'region',
- // title : 'Region',
- // dataStoreId : 'regions',
- // value : '',
- // onChange : function () {
- // if (!App.DataStore.getItem('BuildSelect:region', false))
- // {
- // App.DataStore.loadSelectListData(
- // 'cities', false, 'Location', 'Town.SelectList', null,
- // {"Filter": {
- // "region" : $(this).val()
- // }}
- // );
- // if ($('#sameAsBusinessAddress').prop('checked'))
- // {
- // $('#billingRegion').selectpicker('val', $('#region').val());
- // }
- // }
- // }
- //},
- //'city' : {
- // type : 'select',
- // id : 'city',
- // title : 'Town',
- // dataStoreId : 'cities',
- // value : ''
- //},
- //'street' : {
- // type : 'input',
- // id : 'street',
- // title : 'Street',
- // value : '',
- // maxlength : 75
- //},
- //'postalCode' : {
- // type : 'input',
- // id : 'postalCode',
- // title : 'Code',
- // value : '',
- // maxlength : 10
- //},
+ 'country' : {
+ type : 'select',
+ id : 'country',
+ title : 'Country',
+ dataStoreId : 'countries',
+ value : '',
+ onChange : function () {
+ if (!App.DataStore.getItem('BuildSelect:country', false))
+ {
+ App.DataStore.loadSelectListData(
+ 'regions', false, 'Location', 'Region.SelectList', null,
+ {"Filter": {
+ "country" : $(this).val()
+ }}
+ );
+ App.DataStore.setData('cities', []);
+ if ($('#sameAsBusinessAddress').prop('checked'))
+ {
+ $('#billingCountry').selectpicker('val', $('#country').val());
+ }
+ }
+ }
+ },
+ 'region' : {
+ type : 'select',
+ id : 'region',
+ title : 'Region',
+ dataStoreId : 'regions',
+ value : '',
+ onChange : function () {
+ if (!App.DataStore.getItem('BuildSelect:region', false))
+ {
+ App.DataStore.loadSelectListData(
+ 'cities', false, 'Location', 'Town.SelectList', null,
+ {"Filter": {
+ "region" : $(this).val()
+ }}
+ );
+ if ($('#sameAsBusinessAddress').prop('checked'))
+ {
+ $('#billingRegion').selectpicker('val', $('#region').val());
+ }
+ }
+ }
+ },
+ 'city' : {
+ type : 'select',
+ id : 'city',
+ title : 'Town',
+ dataStoreId : 'cities',
+ value : ''
+ },
+ 'street' : {
+ type : 'input',
+ id : 'street',
+ title : 'Street',
+ value : '',
+ maxlength : 75
+ },
+ 'postalCode' : {
+ type : 'input',
+ id : 'postalCode',
+ title : 'Code',
+ value : '',
+ maxlength : 10
+ },