mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
Fix comment ajax
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@39892 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
2a64b249a2
commit
d81317252e
@ -86,7 +86,7 @@ PageCommentInterface.prototype = {
|
|||||||
* Ajax handler of moderation removal
|
* Ajax handler of moderation removal
|
||||||
*/
|
*/
|
||||||
deleteComment: function() {
|
deleteComment: function() {
|
||||||
var __comment = this.parentNode.parentNode.parentNode;
|
var __comment = this.parentNode.parentNode.parentNode.parentNode;
|
||||||
|
|
||||||
__comment.getElementsByTagName('span')[0].innerHTML = "Removing...";
|
__comment.getElementsByTagName('span')[0].innerHTML = "Removing...";
|
||||||
|
|
||||||
@ -120,7 +120,7 @@ PageCommentInterface.prototype = {
|
|||||||
* Ajax handler of spam reporting
|
* Ajax handler of spam reporting
|
||||||
*/
|
*/
|
||||||
reportSpam: function() {
|
reportSpam: function() {
|
||||||
var __comment = this.parentNode.parentNode.parentNode;
|
var __comment = this.parentNode.parentNode.parentNode.parentNode;
|
||||||
|
|
||||||
__comment.getElementsByTagName('span')[0].innerHTML = "Reporting spam...";
|
__comment.getElementsByTagName('span')[0].innerHTML = "Reporting spam...";
|
||||||
|
|
||||||
@ -162,7 +162,7 @@ PageCommentInterface.prototype = {
|
|||||||
* Ajax handler of ham reporting
|
* Ajax handler of ham reporting
|
||||||
*/
|
*/
|
||||||
reportHam: function() {
|
reportHam: function() {
|
||||||
var __comment = this.parentNode.parentNode.parentNode;
|
var __comment = this.parentNode.parentNode.parentNode.parentNode;
|
||||||
|
|
||||||
__comment.getElementsByTagName('span')[0].innerHTML = "Reporting as not spam...";
|
__comment.getElementsByTagName('span')[0].innerHTML = "Reporting as not spam...";
|
||||||
|
|
||||||
@ -189,7 +189,7 @@ PageCommentInterface.prototype = {
|
|||||||
* Ajax handler of ham reporting
|
* Ajax handler of ham reporting
|
||||||
*/
|
*/
|
||||||
approveComment: function() {
|
approveComment: function() {
|
||||||
var __comment = this.parentNode.parentNode.parentNode;
|
var __comment = this.parentNode.parentNode.parentNode.parentNode;
|
||||||
|
|
||||||
__comment.getElementsByTagName('span')[0].innerHTML = "Marking comment as approved...";
|
__comment.getElementsByTagName('span')[0].innerHTML = "Marking comment as approved...";
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user