Issue #0001739
This commit is contained in:
parent
47054a3f6a
commit
02165e8104
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user