Fixed issue in BS tables where uncheck-all then checking a few would not uncheck properly

Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
snipe 2022-06-13 20:30:35 -07:00
parent 10781a6e4b
commit e393e2eb4b

View file

@ -123,7 +123,9 @@
});
$('.snipe-table').on('uncheck.bs.table .btSelectItem', function (row, $element) {
$( "#checkbox_" + $element.id).remove();
var tableId = $(this).data('id-table');
$( "#" + tableId + "checkbox_" + $element.id).remove();
console.log("#" + tableId + "checkbox_" + $element.id);
});
@ -157,7 +159,7 @@
var tableId = $(this).data('id-table');
for (var i in rowsBefore) {
$( tableId + "_checkbox_" + rowsBefore[i].id).remove();
$('#' + tableId + "_checkbox_" + rowsBefore[i].id).remove();
}
});