| const updateButton = document.querySelector("button"); | |
| updateButton.addEventListener("click", updateJenkins); | |
| function updateJenkins(){ | |
| fetch("update_jenkins_plot").then( | |
| (response) => response.text() | |
| ).then( | |
| (text) => { | |
| alert(text); | |
| updateButton.setAttribute('disabled', true); | |
| updateButton.textContent = "Update in progress"; | |
| }) | |
| } |