From 30490412abc76429388eaab4eee2603f4f95db6e Mon Sep 17 00:00:00 2001 From: Katja Suess Date: Mon, 9 Dec 2019 12:05:11 +0100 Subject: [PATCH] batch navigation: reload on filtering by review_state --- .../app/discussion/browser/javascripts/moderation.js | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/plone/app/discussion/browser/javascripts/moderation.js b/plone/app/discussion/browser/javascripts/moderation.js index 8efd74d..79f9994 100644 --- a/plone/app/discussion/browser/javascripts/moderation.js +++ b/plone/app/discussion/browser/javascripts/moderation.js @@ -150,11 +150,12 @@ require(["jquery", "pat-registry"], function($, registry) { url = location.href + "?review_state=" + review_state; } - $("#review-comments").load(url + " #review-comments", function() { - init(); - $('.pat-plone-modal').patPloneModal(); - let stateObj = { review_state: review_state }; - history.pushState(stateObj, "moderate comments", url); + $("#fieldset-moderate-comments").parent() + .load(url + " #fieldset-moderate-comments", function() { + init(); + $('.pat-plone-modal').patPloneModal(); + let stateObj = { review_state: review_state }; + history.pushState(stateObj, "moderate comments", url); }); });