diff --git a/src/main/java/stirling/software/SPDF/SPdfApplication.java b/src/main/java/stirling/software/SPDF/SPdfApplication.java index 94f1db98..7149088b 100644 --- a/src/main/java/stirling/software/SPDF/SPdfApplication.java +++ b/src/main/java/stirling/software/SPDF/SPdfApplication.java @@ -39,7 +39,8 @@ public class SPdfApplication { public void setServerPortStatic(String port) { if (port.equalsIgnoreCase("auto")) { // Use Spring Boot's automatic port assignment (server.port=0) - SPdfApplication.serverPortStatic = "0"; // This will let Spring Boot assign an available port + SPdfApplication.serverPortStatic = + "0"; // This will let Spring Boot assign an available port } else { SPdfApplication.serverPortStatic = port; } diff --git a/src/main/resources/static/js/pipeline.js b/src/main/resources/static/js/pipeline.js index c36ba02b..837b6665 100644 --- a/src/main/resources/static/js/pipeline.js +++ b/src/main/resources/static/js/pipeline.js @@ -81,6 +81,8 @@ document.getElementById("submitConfigBtn").addEventListener("click", function () let selectedOperation = document.getElementById("operationsDropdown").value; var pipelineName = document.getElementById("pipelineName").value; + + let pipelineList = document.getElementById("pipelineList").children; let pipelineConfig = { name: pipelineName, @@ -218,7 +220,8 @@ fetch("v1/api-docs") document.getElementById('deletePipelineBtn').addEventListener('click', function(event) { event.preventDefault(); - let pipelineName = document.getElementById('pipelineName').value; + let pipelineName = document.getElementById('pipelineName').value; + if (confirm(deletePipelineText + pipelineName)) { removePipelineFromUI(pipelineName); let key = "#Pipeline-" + pipelineName; diff --git a/src/main/resources/templates/misc/show-javascript.html b/src/main/resources/templates/misc/show-javascript.html index 5c35d79f..91dc74cf 100644 --- a/src/main/resources/templates/misc/show-javascript.html +++ b/src/main/resources/templates/misc/show-javascript.html @@ -20,7 +20,7 @@

-
+
javascript @@ -30,7 +30,7 @@
-
+