From 22aaf67b85d994e935b7748c0e91fd6b19f8006b Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Thu, 5 Nov 2009 01:11:40 +0000 Subject: [PATCH] MINOR: fixed page comment form disappearing when validation failed (from r82778) git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@90846 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- javascript/PageCommentInterface.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/javascript/PageCommentInterface.js b/javascript/PageCommentInterface.js index 99503249..84248efa 100755 --- a/javascript/PageCommentInterface.js +++ b/javascript/PageCommentInterface.js @@ -36,7 +36,7 @@ PageCommentInterface.prototype = { postComment: function() { var form = $("PageCommentInterface_Form_PostCommentForm"); - var message = $("PageCommentInterface_Form_PostCommentForm"); + var message = $("PageCommentInterface_Form_PostCommentForm_error"); if(form.elements.Name.value && form.elements.Comment.value) { if(noComments = $('NoComments')) {