535 |
|
|
536 |
if (url.indexOf("form.php?obj=demande&") != -1 |
if (url.indexOf("form.php?obj=demande&") != -1 |
537 |
&& (url.indexOf("&action=3") == -1 |
&& (url.indexOf("&action=3") == -1 |
538 |
|
&& url.indexOf("&action=2") == -1 |
539 |
&& $(".form-is-valid").size() == 0)) { |
&& $(".form-is-valid").size() == 0)) { |
540 |
|
|
541 |
addButtonCadastraleAdesse(); |
addButtonCadastraleAdesse(); |
564 |
if ((url.indexOf("form.php?obj=demande&") != -1 |
if ((url.indexOf("form.php?obj=demande&") != -1 |
565 |
|| url.indexOf("form.php?obj=demande_nouveau_dossier&") != -1 |
|| url.indexOf("form.php?obj=demande_nouveau_dossier&") != -1 |
566 |
|| url.indexOf("form.php?obj=demande_dossier_existant&") != -1) |
|| url.indexOf("form.php?obj=demande_dossier_existant&") != -1) |
567 |
&& url.indexOf("&action=3") == -1 ){ |
&& url.indexOf("&action=3") == -1 |
568 |
|
&& url.indexOf("&action=1") == -1 ){ |
569 |
|
|
570 |
formatFieldReferenceCadastrale(); |
formatFieldReferenceCadastrale(); |
571 |
} |
} |
576 |
*/ |
*/ |
577 |
function formatFieldReferenceCadastrale(){ |
function formatFieldReferenceCadastrale(){ |
578 |
|
|
|
$('.reference_cadastrale_custom_fields').empty(); |
|
|
|
|
579 |
addNewFieldReferencesCadastrales(); |
addNewFieldReferencesCadastrales(); |
580 |
$('#terrain_references_cadastrales').parent().parent().hide(); |
$('#terrain_references_cadastrales').parent().parent().hide(); |
581 |
|
|
840 |
|
|
841 |
/*Réinitialise les champs et cache les champs inutiles selon la qualité du demandeur*/ |
/*Réinitialise les champs et cache les champs inutiles selon la qualité du demandeur*/ |
842 |
/*Si la qualite du demandeur est particulier */ |
/*Si la qualite du demandeur est particulier */ |
843 |
if ( $('#' + id + ' option:selected').val() == 'particulier' ){ |
if ( $('#' + id ).val() == 'particulier' ){ |
844 |
|
|
845 |
$('.personne_morale_fields input').each( |
$('.personne_morale_fields input').each( |
846 |
function(){ |
function(){ |
1001 |
dossier_autorisation_type_detaille est choisi |
dossier_autorisation_type_detaille est choisi |
1002 |
* */ |
* */ |
1003 |
function changeDemandeType(){ |
function changeDemandeType(){ |
1004 |
|
|
1005 |
var idDossierAutorisationTypeDetaille = |
var idDossierAutorisationTypeDetaille = |
1006 |
$("#dossier_autorisation_type_detaille").val(); |
$("#dossier_autorisation_type_detaille").val(); |
1007 |
|
|
1127 |
'type="text" ' + |
'type="text" ' + |
1128 |
'onchange="VerifNum(this)" ' + |
'onchange="VerifNum(this)" ' + |
1129 |
'maxlength="4" ' + |
'maxlength="4" ' + |
1130 |
'size="4" '; |
'size="4" '+ |
1131 |
|
'placeholder="Quart." '; |
1132 |
|
|
1133 |
// désactivation des champs de référence cadastrale |
// désactivation des champs de référence cadastrale |
1134 |
if(type != 'NOUV' || $(".form-is-valid").size() > 0 || url.indexOf('action=3') != -1 ) { |
if(type != 'NOUV' || $(".form-is-valid").size() > 0 || url.indexOf('action=3') != -1 ) { |
1141 |
'class="champFormulaire reference_cadastrale_custom_field" ' + |
'class="champFormulaire reference_cadastrale_custom_field" ' + |
1142 |
'type="text" ' + |
'type="text" ' + |
1143 |
'maxlength="3" ' + |
'maxlength="3" ' + |
1144 |
'size="3" '; |
'size="3" '+ |
1145 |
|
'placeholder="Sect." '; |
1146 |
|
|
1147 |
// désactivation des champs de référence cadastrale |
// désactivation des champs de référence cadastrale |
1148 |
if(type != 'NOUV' || $(".form-is-valid").size() > 0 || url.indexOf('action=3') != -1 ) { |
if(type != 'NOUV' || $(".form-is-valid").size() > 0 || url.indexOf('action=3') != -1 ) { |
1156 |
'type="text" ' + |
'type="text" ' + |
1157 |
'onchange="VerifNum(this)" ' + |
'onchange="VerifNum(this)" ' + |
1158 |
'maxlength="5" ' + |
'maxlength="5" ' + |
1159 |
'size="5" '; |
'size="5" '+ |
1160 |
|
'placeholder="Parc." '; |
1161 |
|
|
1162 |
// désactivation des champs de référence cadastrale |
// désactivation des champs de référence cadastrale |
1163 |
if(type != 'NOUV' || $(".form-is-valid").size() > 0 || url.indexOf('action=3') != -1 ) { |
if(type != 'NOUV' || $(".form-is-valid").size() > 0 || url.indexOf('action=3') != -1 ) { |
1270 |
'maxlength="1" ' + |
'maxlength="1" ' + |
1271 |
'size="1" ' + |
'size="1" ' + |
1272 |
'value="" ' + |
'value="" ' + |
1273 |
|
'placeholder="Sep." ' + |
1274 |
'onchange="testSeparator(this);"/>' + |
'onchange="testSeparator(this);"/>' + |
1275 |
'<input ' + |
'<input ' + |
1276 |
'class="champFormulaire reference_cadastrale_custom_field" ' + |
'class="champFormulaire reference_cadastrale_custom_field" ' + |
1278 |
'onchange="VerifNum(this)" ' + |
'onchange="VerifNum(this)" ' + |
1279 |
'maxlength="4" ' + |
'maxlength="4" ' + |
1280 |
'size="4" ' + |
'size="4" ' + |
1281 |
|
'placeholder="Parc." ' + |
1282 |
'value="" />'; |
'value="" />'; |
1283 |
} |
} |
1284 |
|
|