Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions application/layouts/includes/nav-main.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@
}
},
minChars: 3,
cacheLength: 0,
width: 500,
parse: function(data) {
return $.map(data["response"]["results"], function(row) {
Expand Down
1 change: 1 addition & 0 deletions application/views/scripts/commission/competences.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@

$(".commune").autocomplete("/api/1.0/adresse/get_communes", {
minChars: 3,
cacheLength: 0,
parse: function(data) {
return $.map(data["response"], function(row) {return {data: row,value: row.LIBELLE_COMMUNE,result: row.LIBELLE_COMMUNE}});
},
Expand Down
1 change: 1 addition & 0 deletions application/views/scripts/contact/index.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,7 @@

$("#nom_contact_existant").autocomplete("/contact/get?format=json", {
minChars: 3,
cacheLength: 0,
max: 100,
parse: function(data) {
return $.map(data["resultats"], function(row) {
Expand Down
1 change: 1 addition & 0 deletions application/views/scripts/dossier/index.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@
// Auto complétion de la ville pour le service instructeur
$("#servInstVille").autocomplete("/api/1.0/adresse/get_communes", {
minChars: 3,
cacheLength: 0,
parse: function(data) {
return $.map(data["response"], function(row) {return {data: row,value: row.LIBELLE_COMMUNE,result: row.LIBELLE_COMMUNE}});
},
Expand Down
1 change: 1 addition & 0 deletions application/views/scripts/dossier/liees.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,7 @@
return $("#saisieEtab").val();
}
},
cacheLength: 0,
minChars: 3,
width: 500,
parse: function(data) {
Expand Down
2 changes: 2 additions & 0 deletions application/views/scripts/etablissement/edit.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -886,6 +886,7 @@
// Auto complétion de la ville
$("input[name='commune_ac']").autocomplete("/api/1.0/adresse/get_communes", {
minChars: 2,
cacheLength: 0,
parse: function(data) {
return $.map(data["response"], function(row) {return {data: row,value: row.LIBELLE_COMMUNE,result: row.LIBELLE_COMMUNE}});
},
Expand All @@ -905,6 +906,7 @@
// Auto complétion de la rue
$("input[name='voie_ac']").autocomplete('/api/1.0/adresse/get_voies', {
minChars: 3,
cacheLength: 0,
extraParams: { code_insee: function(){ return $("#adresse-modal input[name='code_insee']").val() } },
parse: function(data) {
return $.map(data["response"], function(row) { return {data: row,value: row.LIBELLE_RUE,result: row.LIBELLE_RUE} });
Expand Down
2 changes: 2 additions & 0 deletions application/views/scripts/search/etablissement.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,7 @@
// Auto complétion de la ville
$("form#zone_de_recherche_modal input[name='commune_ac']").autocomplete("/api/1.0/adresse/get_communes", {
minChars: 3,
cacheLength: 0,
parse: function(data) {
return $.map(data["response"], function(row) {return {data: row,value: row.LIBELLE_COMMUNE,result: row.LIBELLE_COMMUNE}});
},
Expand All @@ -230,6 +231,7 @@
// Auto complétion de la rue
$("form#zone_de_recherche_modal input[name='voie_ac']").autocomplete('/api/1.0/adresse/get_voies', {
minChars: 3,
cacheLength: 0,
extraParams: { code_insee: function(){ return $("input[name='code_insee']").val() } },
parse: function(data) {
return $.map(data["response"], function(row) { return {data: row,value: row.LIBELLE_RUE,result: row.LIBELLE_RUE} });
Expand Down