correction d'un defaut écrasant les commentaires
This commit is contained in:
parent
638c2401d0
commit
147e831592
|
@ -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");
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue