From ea97094891584a334c4c904049e10b4671a975d4 Mon Sep 17 00:00:00 2001 From: Andrew O'Neil Date: Wed, 19 Nov 2008 00:52:04 +0000 Subject: [PATCH] BUGFIX #2694 - Mathspam question clear git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/branches/2.3@66195 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- javascript/PageCommentInterface.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/javascript/PageCommentInterface.js b/javascript/PageCommentInterface.js index 5dfd1112..1109b0a8 100755 --- a/javascript/PageCommentInterface.js +++ b/javascript/PageCommentInterface.js @@ -30,6 +30,8 @@ PageCommentInterface.prototype = { var spamQuestionDiv = $('Math'); var mathLabel = spamQuestionDiv.getElementsByTagName('label')[0]; mathLabel.innerHTML = response.responseText; + var mathQuestion = spamQuestionDiv.getElementsByTagName('input')[0]; + mathQuestion.value = ''; }, postComment: function() { @@ -253,4 +255,6 @@ function loadSpamQuestion(response) { var spamQuestionDiv = $('Math'); var mathLabel = spamQuestionDiv.getElementsByTagName('label')[0]; mathLabel.innerHTML = response.responseText; + var mathQuestion = spamQuestionDiv.getElementsByTagName('input')[0]; + mathQuestion.value = ''; }