Projet

Général

Profil

Actions

Anomalie #1639

fermé

Autocomplete on member form

Ajouté par Johan Cwiklinski il y a presque 2 ans. Mis à jour il y a 10 mois.

Statut:
Fermé
Priorité:
Normal
Assigné à:
-
Catégorie:
-
Version cible:
-
Début:
24/06/2022
Echéance:
% réalisé:

100%

Temps estimé:
Version utilisée:

Description

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:

$('#ville_adh, #lieu_naissance').search({
    apiSettings: {
        url: '{{ path_for("suggestTown" }}',
        method: 'post',
    },
    minCharacters : 2
});

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

@Guillaume AGNIERAY do you have any idea?

Actions

Formats disponibles : Atom PDF