Fix moderation actions (publish, delete) in the moderation view with virtual hosts. This is a replacement for http://dev.plone.org/plone/changeset/35608.

svn path=/plone.app.discussion/trunk/; revision=40518
This commit is contained in:
Timo Stollenwerk 2010-10-05 15:21:54 +00:00
parent b984a445d5
commit 7de585542b
2 changed files with 6 additions and 2 deletions

View File

@ -4,6 +4,10 @@ Changelog
1.0b9 (unreleased)
------------------
- Fix moderation actions (publish, delete) in the moderation view with virtual
hosts. This is a replacement for http://dev.plone.org/plone/changeset/35608.
[timo]
- Do not show two "login to add comments" buttons when there are no comments
yet. This fixes http://plone.org/products/plone.app.discussion/issues/12.
[timo]

View File

@ -25,7 +25,7 @@
var button = $(this);
var row = $(this).parent().parent();
var form = $(row).parents("form");
var path = $(row).find("input:checkbox").attr("value");
var path = $(row).find("[name='selected_obj_paths:list']").attr("value");
var target = path + "/@@moderate-delete-comment";
var comment_id = $(this).attr("id");
$.ajax({
@ -52,7 +52,7 @@
var button = $(this);
var row = $(this).parent().parent();
var form = $(row).parents("form");
var path = $(row).find("input:checkbox").attr("value");
var path = $(row).find("[name='selected_obj_paths:list']").attr("value");
var target = path + "/@@moderate-publish-comment";
$.ajax({
type: "GET",