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

fix hide/show correctly debomatic status on building packages

parent 3f030cc5
...@@ -75,6 +75,7 @@ function Page_Generic() { ...@@ -75,6 +75,7 @@ function Page_Generic() {
var status = { var status = {
set: function (data_status) { set: function (data_status) {
if (!data_status) { if (!data_status) {
if ($('#status li').length === 0) {
if (status_debomatic.running) { if (status_debomatic.running) {
$('#status .idle').show(); $('#status .idle').show();
$('#status .norunning').hide(); $('#status .norunning').hide();
...@@ -82,6 +83,7 @@ function Page_Generic() { ...@@ -82,6 +83,7 @@ function Page_Generic() {
$('#status .idle').hide(); $('#status .idle').hide();
$('#status .norunning').show(); $('#status .norunning').show();
} }
}
} else { } else {
$('#status ul').html(''); $('#status ul').html('');
if (data_status.length > 0) { if (data_status.length > 0) {
...@@ -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