Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/freebsd/poudriere.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/share/poudriere/html')
-rw-r--r--src/share/poudriere/html/assets/poudriere.js9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/share/poudriere/html/assets/poudriere.js b/src/share/poudriere/html/assets/poudriere.js
index d18ffe76..45a832a7 100644
--- a/src/share/poudriere/html/assets/poudriere.js
+++ b/src/share/poudriere/html/assets/poudriere.js
@@ -656,8 +656,6 @@ function process_data_build(data) {
return;
}
} else {
- $('#' + status + '_div').show();
- $('#nav_' + status).removeClass('disabled');
n = 0;
}
for (; n < data.ports[status].length; n++) {
@@ -679,6 +677,13 @@ function process_data_build(data) {
$('#' + status + '_table').DataTable().clear().draw();
$('#' + status + '_table').DataTable().rows.add(table_rows)
.draw(false);
+ if (table_rows.length > 0) {
+ $('#' + status + '_div').show();
+ $('#nav_' + status).removeClass('disabled');
+ } else {
+ $('#' + status + '_div').hide();
+ $('#nav_' + status).addClass('disabled');
+ }
}
}
});