implemented Text to show if there are no Jobs.

fixed Bug #11
This commit is contained in:
schrom01
2022-08-27 20:47:03 +02:00
parent 18e78b7783
commit ab12bf7b02
4 changed files with 17 additions and 5 deletions
+5 -1
View File
@@ -17,7 +17,11 @@ function refreshZone(zone_json) {
function refreshPipeline(pipeline_html) {
document.getElementById("jobListBody").innerHTML = pipeline_html;
//alert("refreshing Pipeline");
var jobListBody = document.getElementById("jobListBody");
jobListBody.innerHTML = pipeline_html;
document.getElementById("text_no_jobs").style.display = jobListBody.childElementCount ? 'none' : 'block';
document.getElementById("button_delete_all_jobs").style.display = jobListBody.childElementCount ? 'block' : 'none';
}
function buttonDeleteJobById(jobId) {