Merge branch 'ticket-12392-fixItalianNumber'

This commit is contained in:
Marion Muszynski 2017-01-27 16:57:43 +01:00
commit 58ad31a40d

View File

@ -1006,11 +1006,11 @@ $(document).ready(function () {
if($('#sl-0-country').val() == 'ES'){
if($('#custPhone').val().length == 9 && !(phone_mobile_without_zero.test($('#custPhone').val()))){
ev.preventDefault();
alert($('#error-mobile-invalid').val() + '\n\nFormat : 0610102031 ou 0034610102031');
alert($('#error-mobile-invalid').val() + '\n\nFormat : 610102031 ou 0034610102031');
return (false);
}else if($('#custPhone').val().length > 9 && !(phone_mobile_es.test($('#custPhone').val()))) {
ev.preventDefault();
alert($('#error-mobile-invalid').val() + '\n\nFormat : 0610102031 ou 0034610102031');
alert($('#error-mobile-invalid').val() + '\n\nFormat : 610102031 ou 0034610102031');
return (false);
}
}