Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -75,12 +75,6 @@ function refreshTServersTable() {
function refreshDeadTServersTable() {
ajaxReloadTable(deadTServersTable);

// Only show the table if there are non-empty rows
if ($('#deadtservers tbody .dataTables_empty').length) {
$('#deadtservers_wrapper').hide();
} else {
$('#deadtservers_wrapper').show();
}
}

/**
Expand Down Expand Up @@ -312,7 +306,17 @@ $(document).ready(function () {
return data;
}
}
]
],

// Only show the table if there are non-empty rows
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This comment suggests that maybe we should never hide the table.

"drawCallback": function () {
if (this.api().rows().data().length === 0) {
$('#deadtservers_wrapper').hide();
}
else {
$('#deadtservers_wrapper').show();
}
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

spacing seems off here

}
});

// Create a table for badServers list
Expand Down