From c868b2fae79b516e3226b743fd24fa3147c8a80b Mon Sep 17 00:00:00 2001 From: zef Date: Wed, 29 Jan 2025 09:55:47 -0800 Subject: [PATCH] fix mark_as_resolved processes.ftl function: tell server to accept json and redraw table --- install/cws-ui/processes.ftl | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/install/cws-ui/processes.ftl b/install/cws-ui/processes.ftl index 6f5df01e..e1cfbaf6 100644 --- a/install/cws-ui/processes.ftl +++ b/install/cws-ui/processes.ftl @@ -1654,11 +1654,17 @@ $.ajax({ type: "POST", url: "/${base}/rest/processes/markResolved", + Accept: "application/json", + contentType: "application/json", + dataType: "json", data: JSON.stringify(getSelectedRowUuids()) }) .done(function (msg) { $("#action_msg").html(msg.message); - table.ajax.reload(); + //clear table + table.clear().draw(); + //reload table + fetchAndDisplayProcesses(); }) .fail(function (xhr, err) { $("#action_msg").html(xhr.responseTextmsg.message);