Multiple ajax call if multiple address
Add test if input radio is checked on event listener "change"
This commit is contained in:
@@ -145,12 +145,14 @@
|
|||||||
$('#delivery-module-list-block').load('{url path="/order/deliveryModuleList"}');
|
$('#delivery-module-list-block').load('{url path="/order/deliveryModuleList"}');
|
||||||
|
|
||||||
$('.js-change-delivery-address').change(function(e) {
|
$('.js-change-delivery-address').change(function(e) {
|
||||||
|
if (this.checked) {
|
||||||
$('#delivery-module-list-block').load(
|
$('#delivery-module-list-block').load(
|
||||||
'{url path="/order/deliveryModuleList"}',
|
'{url path="/order/deliveryModuleList"}',
|
||||||
{literal}
|
{literal}
|
||||||
{country_id: $(this).data('country')}
|
{country_id: $(this).data('country')}
|
||||||
{/literal}
|
{/literal}
|
||||||
);
|
);
|
||||||
|
)
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
Reference in New Issue
Block a user