//small js fix

This commit is contained in:
vAugagneur
2013-03-13 18:21:21 +01:00
parent eae5f2d965
commit 37f64664d3
+4 -4
View File
@@ -134,12 +134,12 @@ function changeAddressDelivery(obj)
} }
}); });
} }
else if (new_id_address_delivery === -1) // Adding a new address else if (new_id_address_delivery == -1) // Adding a new address
window.location = $($('.address_add a')[0]).attr('href'); window.location = $($('.address_add a')[0]).attr('href');
else if (new_id_address_delivery === -2) // Add a new line for this product else if (new_id_address_delivery == -2) // Add a new line for this product
{ {
// This test is will not usefull in the future // This test is will not usefull in the future
if (old_id_address_delivery === 0) if (old_id_address_delivery == 0)
{ {
alert(txtSelectAnAddressFirst); alert(txtSelectAnAddressFirst);
return false; return false;