Skip to content

Commit

Permalink
Fixes missing tooltips for menu on initiator page and broken .success…
Browse files Browse the repository at this point in the history
…() callbacks on processes page
  • Loading branch information
jdrodjpl committed Jul 9, 2024
1 parent 1453353 commit e866cc3
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 19 deletions.
7 changes: 3 additions & 4 deletions install/cws-ui/initiators.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,12 @@
<head>
<meta charset="utf-8">
<title>CWS - Initiators</title>
<script src="/${base}/js/jquery.min.js"></script>
<script src="/${base}/js/jquery.migrate.js"></script>
<script src="/${base}/js/jquery.min.js"></script>
<script src="/${base}/js/popper.min.js"></script>
<script src="/${base}/js/bootstrap.min.js"></script>
<script src="/${base}/js/ace/ace.js"></script>
<link href="/${base}/css/bootstrap.min.css" rel="stylesheet">
<link href="/${base}/css/dashboard.css" rel="stylesheet">
<script src="/${base}/js/bootstrap.min.js"></script>
<script src="/${base}/js/popper.min.js"></script>

<style type="text/css">
#save-table td:nth-child(2){
Expand Down
34 changes: 19 additions & 15 deletions install/cws-ui/processes.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -1516,13 +1516,13 @@
url: "/${base}/rest/processes/delete",
Accept: "application/json",
contentType: "application/json",
data: JSON.stringify(procInstIds)
})
.success(function (msg) {
//clear table
table.clear().draw();
//reload table
fetchAndDisplayProcesses();
data: JSON.stringify(procInstIds),
success: function (msg) {
//clear table
table.clear().draw();
//reload table
fetchAndDisplayProcesses();
}
})
.fail(function (xhr, err) {
console.error(xhr.responseTextmsg);
Expand Down Expand Up @@ -1839,8 +1839,8 @@
Accept: "application/json",
contentType: "application/json",
dataType: "json",
async: false
}).success(function (data) {
async: false,
success: function (data) {
var status = data.state;
if (data.state === "COMPLETED") {
status = "Complete";
Expand All @@ -1867,6 +1867,7 @@
const row = [date, entry["type"], entry["activity"], outputMessage(entry["message"])];
logLines.push(row);
}
}
}).fail(function (xhr, err) {
console.error("Error getting instance JSON: " + xhr.responseText);
});
Expand All @@ -1877,8 +1878,8 @@
Accept: "application/json",
contentType: "application/json",
dataType: "json",
async: false
}).success(function (data) {
async: false,
success: function (data) {
var finished = false;
scrollId = data._scroll_id;
if (data.hits) {
Expand Down Expand Up @@ -1916,6 +1917,7 @@
}
});
}
}
}).fail(function (xhr, err) {
console.error("Error getting instance JSON: " + xhr.responseText);
});
Expand Down Expand Up @@ -2114,8 +2116,8 @@
Accept : "application/json",
contentType: "application/json",
dataType: "json",
async: false
}).success(function(data) {
async: false,
success: function(data) {
var status = data.state;
if (data.state === "COMPLETED") {
status = "Complete";
Expand All @@ -2137,6 +2139,7 @@
const row = [date, entry["type"], entry["activity"], outputMessage(entry["message"])];
logLines.push(row);
}
}
}).fail(function(xhr, err) {
console.error("Error getting instance JSON: " + xhr.responseText);
});
Expand All @@ -2147,8 +2150,8 @@
Accept : "application/json",
contentType: "application/json",
dataType: "json",
async: false
}).success(function(data) {
async: false,
success:function(data) {
var finished = false;
scrollId = data._scroll_id;
if (data.hits) {
Expand Down Expand Up @@ -2186,6 +2189,7 @@
}
});
}
}
}).fail(function(xhr, err) {
console.error("Error getting instance JSON: " + xhr.responseText);
});
Expand Down

0 comments on commit e866cc3

Please sign in to comment.