Commit 7f04e2db authored by Leo Iannacone's avatar Leo Iannacone

fix hide/show correctly debomatic status on building packages

parent 3f030cc5
...@@ -75,12 +75,14 @@ function Page_Generic() { ...@@ -75,12 +75,14 @@ function Page_Generic() {
var status = { var status = {
set: function (data_status) { set: function (data_status) {
if (!data_status) { if (!data_status) {
if (status_debomatic.running) { if ($('#status li').length === 0) {
$('#status .idle').show(); if (status_debomatic.running) {
$('#status .norunning').hide(); $('#status .idle').show();
} else { $('#status .norunning').hide();
$('#status .idle').hide(); } else {
$('#status .norunning').show(); $('#status .idle').hide();
$('#status .norunning').show();
}
} }
} else { } else {
$('#status ul').html(''); $('#status ul').html('');
...@@ -92,7 +94,7 @@ function Page_Generic() { ...@@ -92,7 +94,7 @@ function Page_Generic() {
} }
}, },
append: function (status_data) { append: function (status_data) {
$('#status .idle').hide(); $('#status .debomatic').hide();
$('#status ul').append(__get_status_html(status_data)); $('#status ul').append(__get_status_html(status_data));
}, },
update: function (status_data) { update: function (status_data) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment