From 147e8315923960d4fcaed8e327c3e163c08fdf7d Mon Sep 17 00:00:00 2001 From: Matt Marcha Date: Fri, 19 Feb 2021 22:27:15 +0100 Subject: [PATCH] =?UTF-8?q?correction=20d'un=20defaut=20=C3=A9crasant=20le?= =?UTF-8?q?s=20commentaires?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- custom.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom.js b/custom.js index 721df3d..78a7a09 100755 --- a/custom.js +++ b/custom.js @@ -21,7 +21,7 @@ jQuery( document ).ready(function($) { //Et on remplit le champ commentaire si il a été laissé vide $('#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"); } });