batch navigation: reload on filtering by review_state

This commit is contained in:
Katja Suess 2019-12-09 12:05:11 +01:00
parent bf20752b69
commit 30490412ab
1 changed files with 6 additions and 5 deletions

View File

@ -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);
});
});