32,7 → 32,8 |
gererAffichageValeursParDefaut(champs_ts); |
afficherValeurParDefaut(champs_ts); |
gererAccesFicheFlecheDroite(); |
gererClicIllustrationsResultats() |
gererClicIllustrationsResultats(); |
gererAccesFicheBouton(); |
}); |
|
/**------------------- Fonctions de gestion de l'autocompletion ---------------------------------*/ |
112,7 → 113,10 |
if(event.keyCode == 39) { |
if(autocompletionFicheOuverte && elementAutocompletionSelectionne != null && nomSciEstDemande()) { |
$('#nom').val(elementAutocompletionSelectionne.value); |
$('#eflore_nomenclature_fiche').click(); |
if(elementAutocompletionSelectionne.nn != undefined && elementAutocompletionSelectionne.nn != null) { |
var url_fiche_taxon = URL_BASE_FICHE_TAXON.replace('{num_taxon}',elementAutocompletionSelectionne.nn); |
window.location.href = url_fiche_taxon; |
} |
$('#nom').autocomplete( "disable" ); |
//TODO : ajout d'un message de chargement ? |
} |
126,6 → 130,19 |
}); |
} |
|
function gererAccesFicheBouton() { |
$('#eflore_nomenclature_fiche').click(function(event) { |
if(elementAutocompletionSelectionne != null && nomSciEstDemande()) { |
$('#nom').val(elementAutocompletionSelectionne.value); |
if(elementAutocompletionSelectionne.nn != undefined && elementAutocompletionSelectionne.nn != null) { |
var url_fiche_taxon = URL_BASE_FICHE_TAXON.replace('{num_taxon}',elementAutocompletionSelectionne.nn); |
window.location.href = url_fiche_taxon; |
} |
event.preventDefault(); |
} |
}); |
} |
|
function traiterRetourNomsSci(data) { |
var suggestions = []; |
if (data.resultat != undefined) { |