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

View File

@ -150,11 +150,12 @@ require(["jquery", "pat-registry"], function($, registry) {
url = location.href + "?review_state=" + review_state; url = location.href + "?review_state=" + review_state;
} }
$("#review-comments").load(url + " #review-comments", function() { $("#fieldset-moderate-comments").parent()
init(); .load(url + " #fieldset-moderate-comments", function() {
$('.pat-plone-modal').patPloneModal(); init();
let stateObj = { review_state: review_state }; $('.pat-plone-modal').patPloneModal();
history.pushState(stateObj, "moderate comments", url); let stateObj = { review_state: review_state };
history.pushState(stateObj, "moderate comments", url);
}); });
}); });