Skip to content

Commit

Permalink
MINOR: fixed page comment form disappearing when validation failed
Browse files Browse the repository at this point in the history
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/branches/2.3@82778 467b73ca-7a2a-4603-9d3b-597d59a354a9
  • Loading branch information
Will Rossiter authored and Sam Minnee committed Feb 2, 2011
1 parent 7b83603 commit b40b29c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion javascript/PageCommentInterface.js
Expand Up @@ -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')) {
Expand Down

0 comments on commit b40b29c

Please sign in to comment.