From c53025f01c80ca0a794e35b9ac40f9130973cbd2 Mon Sep 17 00:00:00 2001 From: Michael RICOIS Date: Mon, 3 Mar 2014 16:36:34 +0000 Subject: [PATCH] fixed issue #0001882 : Add change to version 2.4 --- .../default/scripts/saisie/lienidentite.phtml | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/application/views/default/scripts/saisie/lienidentite.phtml b/application/views/default/scripts/saisie/lienidentite.phtml index 1466af742..41d1a7ddd 100644 --- a/application/views/default/scripts/saisie/lienidentite.phtml +++ b/application/views/default/scripts/saisie/lienidentite.phtml @@ -67,8 +67,6 @@ if ($this->actif==1){ - -
1255 @@ -99,7 +97,7 @@ if ($this->actif==1){ - +
@@ -192,7 +190,7 @@ $('input[name=dateNbActions]').datepicker({ changeMonth: true, changeYear: true $('input[name=isin]').change(function(e){ $.post('/saisie/checkisin', {isin: $(this).val() }, function success(data) { - if (data){$('input[name=isin]').css("border-color", "red");} + if (data){$('input[name=isin]').css("border-color", "red");} else {$('input[name=isin]').css("border-color", "");} }); }); @@ -209,18 +207,18 @@ function cpville(inputFld, outputFld, countrySel=null, countryVal=null) { }, select: function( event, ui ) { var text = ui.item.label; - text = text.replace(ui.item.value+': ',''); + text = text.replace(ui.item.value+': ',''); if (inputFld==outputFld) { ui.item.value = text; } $('input[name='+inputFld+']').attr('value', ui.item.value); - $('input[name='+outputFld+']').attr('value', text); + $('input[name='+outputFld+']').attr('value', text); if (countrySel!=null && countryVal!=null){ - $('select[name='+countrySel+']').val(countryVal); + $('select[name='+countrySel+']').val(countryVal); } } }) - + } cpville('adresse_cp', 'adresse_ville');