This commit is contained in:
Aram HARUTYUNYAN 2013-10-11 10:51:41 +00:00
parent 47054a3f6a
commit 02165e8104

View File

@ -107,7 +107,7 @@ Selectionner un pays pour afficher les identifiants locaux
<div class="fieldgrp">
<label>Téléphone</label>
<div class="field">
<input type="text" name="tel" value="<?=$this->tel?>"/> <span id="indTel"></span>
<div style="float-left;"></div><span id="indTel"></div><div></span><input type="text" name="tel" value="<?=$this->tel?>"/></div>
</div>
</div>
@ -233,10 +233,15 @@ $.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']);
});
$('select[name=adresse_pays]').change(function(e){
var code = $(this).val();
//Devise, indicatif téléphone
$('span#indTel').html('+'+countries[code]['indTel']);
$('span#indTel').text('+'+countries[code]['indTel']);
$('select[name=deviseCapital]').val(countries[code]['devise']);
$('select[name=bilDev]').val(countries[code]['devise']);
//Local Id