Projet

Général

Profil

Anomalie #1639

Mis à jour par Johan Cwiklinski il y a presque 2 ans

On thing has been missed when removing old JS libs: the autocomplete feature on member forms (fields town, birth place and country). 

 I guess this should be replaced with Fomantic's "search", but I can't get it working :/ 

 I've added @"search"@ in @semantic.json@ file and rebuild the theme, and I've tried something like this: 

 <pre><code class="javascript"> 
 $('#ville_adh, #lieu_naissance').search({ 
     apiSettings: { 
         url: '{{ path_for("suggestTown" }}', 
         method: 'post', 
     }, 
     minCharacters : 2 
 }); 
 </code></pre> 

 I was expecting at least an error, but nothing happens. 

 @gagnieray @Guillaume do you have any idea?

Retour