Subversion Repositories eFlore/Applications.eflore-consultation

Rev

Rev 922 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 922 Rev 926
Line 277... Line 277...
277
}
277
}
Line 278... Line 278...
278
 
278
 
279
/**------------ Fonctions de détection de l'état du formulaire ------------------*/
279
/**------------ Fonctions de détection de l'état du formulaire ------------------*/
280
function nomSciEstDemande()  {
280
function nomSciEstDemande()  {
281
	var boutonRadioNomSci = $('#type_nom_scientifique');
281
	var boutonRadioNomSci = $('#type_nom_scientifique');
282
	return (boutonRadioNomSci.attr("checked") != "undefined" && boutonRadioNomSci.attr("checked") == "checked");
282
	return (($('#type_nom_vernaculaire').length <= 0) || (boutonRadioNomSci != null && boutonRadioNomSci.attr("checked") != "undefined" && boutonRadioNomSci.attr("checked") == "checked"));
Line 283... Line 283...
283
}
283
}
284
 
284
 
285
function nomVernaculaireEstDemande()  {
285
function nomVernaculaireEstDemande()  {
286
	var boutonRadioNomSci = $('#type_nom_vernaculaire');
286
	var boutonRadioNomSci = $('#type_nom_vernaculaire');
Line 287... Line 287...
287
	return (boutonRadioNomSci.attr("checked") != "undefined" && boutonRadioNomSci.attr("checked") == "checked");
287
	return (boutonRadioNomSci.length > 0 && boutonRadioNomSci.attr("checked") != "undefined" && boutonRadioNomSci.attr("checked") == "checked");
288
}
288
}
289
 
289