mirror of
https://github.com/snipe/snipe-it.git
synced 2024-11-10 07:34:06 -08:00
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:
parent
10781a6e4b
commit
e393e2eb4b
|
@ -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();
|
||||
}
|
||||
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue