Multiple ajax call if multiple address

Add test if input radio is checked on event listener "change"
This commit is contained in:
MrGuillou
2014-08-06 12:47:36 +02:00
parent d67c973460
commit 93f7099682

View File

@@ -145,14 +145,16 @@
$('#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) {
$('#delivery-module-list-block').load( if (this.checked) {
'{url path="/order/deliveryModuleList"}', $('#delivery-module-list-block').load(
{literal} '{url path="/order/deliveryModuleList"}',
{country_id: $(this).data('country')} {literal}
{/literal} {country_id: $(this).data('country')}
); {/literal}
);
)
}); });
}); });
</script> </script>
{/block} {/block}