only select rows that are visible.

This commit is contained in:
DESKTOP-GENO133\IvanPlex
2024-02-21 12:50:11 -07:00
parent 0851e0a222
commit 8759216dd6

View File

@@ -470,8 +470,8 @@ $(window).on('keydown', function (e) {
})
function selectAllRows() {
clearSelectedRows();
$('.vehicleDetailTabContainer .table tbody tr').addClass('table-active');
$('.vehicleDetailTabContainer .table tbody tr').map((index, elem) => {
$('.vehicleDetailTabContainer .table tbody tr:visible').addClass('table-active');
$('.vehicleDetailTabContainer .table tbody tr:visible').map((index, elem) => {
addToSelectedRows($(elem).attr('data-rowId'));
});
}
@@ -546,7 +546,7 @@ function showTableContextMenu(e) {
}
}
function determineContextMenuItems() {
var tableRows = $('.table tbody tr');
var tableRows = $('.table tbody tr:visible');
var tableRowsActive = $('.table tr.table-active');
if (tableRowsActive.length == 1) {
//only one row selected