mirror of
https://github.com/silverstripe/silverstripe-reports
synced 2024-10-22 11:05:53 +02:00
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
This commit is contained in:
parent
bb87f843ca
commit
22aaf67b85
@ -36,7 +36,7 @@ PageCommentInterface.prototype = {
|
|||||||
|
|
||||||
postComment: function() {
|
postComment: function() {
|
||||||
var form = $("PageCommentInterface_Form_PostCommentForm");
|
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(form.elements.Name.value && form.elements.Comment.value) {
|
||||||
if(noComments = $('NoComments')) {
|
if(noComments = $('NoComments')) {
|
||||||
|
Loading…
Reference in New Issue
Block a user