Merge pull request #427 from phl0/hideSameNumberOfPasses

Hide hint and button if number of workable passes matches number of all passes
This commit is contained in:
Florian (DF2ET)
2024-05-30 07:24:00 +02:00
committed by GitHub

View File

@@ -135,6 +135,10 @@ function loadActivationsTable(rows, show_workable_only) {
table.rows(createdRow).nodes().to$().data('activationID', activation.id);
table.row(createdRow).node().id = 'activationID-' + activation.id;
}
if (workable_rows == rows.length) {
$('#toggle_workable').hide();
$('#workable_hint').hide();
}
if (workable_only == '1') {
if (rows.length > workable_rows) {
$('#toggle_workable').html('Show all passes ('+rows.length+')');