fixed issue #0001882 : Add change to version 2.4

This commit is contained in:
Michael RICOIS 2014-03-03 16:36:34 +00:00
parent d42b1c10aa
commit c53025f01c

View File

@ -67,8 +67,6 @@ if ($this->actif==1){
</div>
</div>
<input type="hidden" name="adresse_pays" value="FRA" />
<div class="fieldgrp">
<label>Téléphone</label>
<div class="field">1255
@ -99,7 +97,7 @@ if ($this->actif==1){
<input type="hidden" name="cj" value="<?=$this->cj?>"/>
<input type="hidden" name="ape" value="<?=$this->ape?>"/>
<input type="hidden" name="adresse_pays" value="<?=$this->adresse_pays?>" />
<input type="hidden" name="adresse_pays" value="<?=($this->adresse_pays)?$this->adresse_pays:'FRA'?>" />
<div class="fieldgrp">
<label>au capital de</label>
@ -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');
</script>