diff --git a/application/views/default/scripts/saisie/lienetranger.phtml b/application/views/default/scripts/saisie/lienetranger.phtml index d24647378..618612497 100644 --- a/application/views/default/scripts/saisie/lienetranger.phtml +++ b/application/views/default/scripts/saisie/lienetranger.phtml @@ -240,11 +240,6 @@ $.datepicker.setDefaults( $.datepicker.regional["fr"] ); $('input[name=dateCapital]').datepicker({ changeMonth: true, changeYear: true }); $('input[name=dateNbActions]').datepicker({ changeMonth: true, changeYear: true }); -$(document).ready(function(){ - var code = $('select[name=adresse_pays]').val(); - $('span#indTel').text('+'+countries[code]['indTel']); -}); - $('input[name=isin]').change(function(e){ $.post('/saisie/checkisin', {isin: $(this).val() }, function success(data) { if (data){$('input[name=isin]').css("border-color", "red");} @@ -303,4 +298,9 @@ $('a#google').on('click', function(e){ var val = $('input[name=nom]').val(); window.open('https://www.google.fr/#q='+encodeURIComponent(val)); }); + +$(document).ready(function(){ + var code = $('select[name=adresse_pays]').val(); + $('span#indTel').text('+'+countries[code]['indTel']); +}); \ No newline at end of file