mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
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
This commit is contained in:
parent
c9bc8c41c7
commit
ea97094891
@ -30,6 +30,8 @@ PageCommentInterface.prototype = {
|
|||||||
var spamQuestionDiv = $('Math');
|
var spamQuestionDiv = $('Math');
|
||||||
var mathLabel = spamQuestionDiv.getElementsByTagName('label')[0];
|
var mathLabel = spamQuestionDiv.getElementsByTagName('label')[0];
|
||||||
mathLabel.innerHTML = response.responseText;
|
mathLabel.innerHTML = response.responseText;
|
||||||
|
var mathQuestion = spamQuestionDiv.getElementsByTagName('input')[0];
|
||||||
|
mathQuestion.value = '';
|
||||||
},
|
},
|
||||||
|
|
||||||
postComment: function() {
|
postComment: function() {
|
||||||
@ -253,4 +255,6 @@ function loadSpamQuestion(response) {
|
|||||||
var spamQuestionDiv = $('Math');
|
var spamQuestionDiv = $('Math');
|
||||||
var mathLabel = spamQuestionDiv.getElementsByTagName('label')[0];
|
var mathLabel = spamQuestionDiv.getElementsByTagName('label')[0];
|
||||||
mathLabel.innerHTML = response.responseText;
|
mathLabel.innerHTML = response.responseText;
|
||||||
|
var mathQuestion = spamQuestionDiv.getElementsByTagName('input')[0];
|
||||||
|
mathQuestion.value = '';
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user