fix comment-moderation

This commit is contained in:
Philip Bauer 2015-09-19 14:58:53 +02:00
parent 35e6ab2677
commit e2bd22e74b

View File

@ -36,7 +36,8 @@ require([ // jshint ignore:line
e.preventDefault();
var row = $(this).parent().parent();
var path = $(row).find("[name='selected_obj_paths:list']").attr("value");
var target = path + "/@@moderate-delete-comment";
var auth_key = $('input[name="_authenticator"]').val();
var target = path + "/@@moderate-delete-comment?_authenticator=" + auth_key;
$.ajax({
type: "GET",
url: target,
@ -65,7 +66,8 @@ require([ // jshint ignore:line
e.preventDefault();
var row = $(this).parent().parent();
var path = $(row).find("[name='selected_obj_paths:list']").attr("value");
var target = path + "/@@moderate-publish-comment";
var auth_key = $('input[name="_authenticator"]').val();
var target = path + "/@@moderate-publish-comment?_authenticator=" + auth_key;
$.ajax({
type: "GET",
url: target,