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:
parent
b984a445d5
commit
7de585542b
@ -4,6 +4,10 @@ Changelog
|
|||||||
1.0b9 (unreleased)
|
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
|
- 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.
|
yet. This fixes http://plone.org/products/plone.app.discussion/issues/12.
|
||||||
[timo]
|
[timo]
|
||||||
|
@ -25,7 +25,7 @@
|
|||||||
var button = $(this);
|
var button = $(this);
|
||||||
var row = $(this).parent().parent();
|
var row = $(this).parent().parent();
|
||||||
var form = $(row).parents("form");
|
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 target = path + "/@@moderate-delete-comment";
|
||||||
var comment_id = $(this).attr("id");
|
var comment_id = $(this).attr("id");
|
||||||
$.ajax({
|
$.ajax({
|
||||||
@ -52,7 +52,7 @@
|
|||||||
var button = $(this);
|
var button = $(this);
|
||||||
var row = $(this).parent().parent();
|
var row = $(this).parent().parent();
|
||||||
var form = $(row).parents("form");
|
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";
|
var target = path + "/@@moderate-publish-comment";
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
|
Loading…
Reference in New Issue
Block a user