correction d'un defaut écrasant les commentaires

This commit is contained in:
Matt Marcha 2021-02-19 22:27:15 +01:00
parent 638c2401d0
commit 147e831592

View file

@ -21,7 +21,7 @@ jQuery( document ).ready(function($) {
//Et on remplit le champ commentaire si il a été laissé vide //Et on remplit le champ commentaire si il a été laissé vide
$('#commentform #submit').click(function (){ $('#commentform #submit').click(function (){
if($('#commentform .comment-form-comment').val().length === 0) { if($('#commentform .comment-form-comment textarea').val().length === 0) {
$('#commentform .comment-form-comment textarea').val("Aucun commentaire"); $('#commentform .comment-form-comment textarea').val("Aucun commentaire");
} }
}); });