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
1 changed files with 4 additions and 2 deletions
|
@ -123,7 +123,9 @@
|
||||||
});
|
});
|
||||||
|
|
||||||
$('.snipe-table').on('uncheck.bs.table .btSelectItem', function (row, $element) {
|
$('.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');
|
var tableId = $(this).data('id-table');
|
||||||
|
|
||||||
for (var i in rowsBefore) {
|
for (var i in rowsBefore) {
|
||||||
$( tableId + "_checkbox_" + rowsBefore[i].id).remove();
|
$('#' + tableId + "_checkbox_" + rowsBefore[i].id).remove();
|
||||||
}
|
}
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Reference in a new issue