Skip to content

Commit 5108445

Browse files
committed
Load ticket recipients from the Reply/Comment action in a dashboard
ticketUpdateRecipients and ticketUpdateScrips waited for widgets to finish loading by checking document.querySelector('.htmx-indicator') across the whole page. A saved-search portlet renders a persistent auto-refresh spinner with that class, so on a dashboard the check never cleared: the inline Reply/Comment modal never issued its ShowSimplifiedRecipients (or PreviewScrips) request and the recipients list stayed empty, while the standalone search results page worked. Scope the check to the ticket update form so unrelated indicators elsewhere on the page no longer block it. Fixes: I#38207
1 parent efe5058 commit 5108445

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

share/static/js/util.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1415,7 +1415,7 @@ function checkRefreshState(elt) {
14151415
let previous_data;
14161416
functions.push(function (evt) {
14171417
if (evt && evt.type === 'htmx:load') {
1418-
if (document.querySelector('.htmx-indicator')) {
1418+
if (document.querySelector('form[name=TicketUpdate] .htmx-indicator')) {
14191419
return;
14201420
}
14211421
else if (RT.loadListeners) {

0 commit comments

Comments
 (0)