Issue #0001727: Ajouter le champs lors de l'édition de société avec SIREN (France)

This commit is contained in:
Aram HARUTYUNYAN 2013-11-11 11:36:12 +00:00
parent b6cd0fa8a3
commit d335aa9774

View File

@ -38,6 +38,13 @@
</div>
</div>
<div class="fieldgrp">
<label>ISIN</label>
<div class="field">
<input type="text" name="isin" value="<?=$this->isin?>"/>
</div>
</div>
<input type="hidden" name="adresse_pays" value="FRA" />
<div class="fieldgrp">
@ -159,6 +166,13 @@
$.datepicker.setDefaults( $.datepicker.regional["fr"] );
$('input[name=dateCapital]').datepicker({ changeMonth: true, changeYear: true });
$('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");}
else {$('input[name=isin]').css("border-color", "");}
});
});
</script>
<?php } else {?>