Subversion Repositories eFlore/Applications.eflore-consultation

Compare Revisions

Ignore whitespace Rev 277 → Rev 278

/trunk/presentations/scripts/recherche.js
37,7 → 37,7
 
/**------------ Fonctions de gestion des urls d'autocompletion et des fiches ------------------*/
function getUrlAutocompletion(baseUrl, requete, format) {
return baseUrl+"?recherche=etendue&retour.format="+format+"&navigation.limite=25&masque="+requete;
return baseUrl+"?recherche=etendue&retour.format="+format+"&navigation.limite=50&masque="+requete;
}
 
function getUrlAutocompletionNomsVerna(requete) {
73,7 → 73,7
});
}
if(suggestions.length >= 25) {
if(suggestions.length >= 50) {
suggestions.push("...");
}
89,7 → 89,7
});
}
if(suggestions.length >= 25) {
if(suggestions.length >= 50) {
suggestions.push("...");
}
130,7 → 130,8
}
 
function formulaireAfficheValeurParDefaut() {
valeur_form = $('#nom').val().trim();
valeur_form = $('#nom').val();
valeur_form = $.trim(valeur_form);
return valeur_form == '' || valeur_form == valeurDefautNomSci || valeur_form == valeurDefautNomVerna;
}
 
151,7 → 152,8
 
function afficherValeurParDefaut() {
if($('#nom') != undefined && $('#nom').val() != undefined) {
valeur_form = $('#nom').val().trim();
valeur_form = $('#nom').val();
valeur_form = $.trim(valeur_form);
if(formulaireAfficheValeurParDefaut()) {
if(nomSciEstDemande()) {
$('#nom').val(valeurDefautNomSci);