Skip to content

A free open source IT asset/license management system

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

snipee393e2eb4b47
diff --git a/resources/views/partials/bootstrap-table.blade.php b/resources/views/partials/bootstrap-table.blade.php
index 588eaa9160..f0bebb4bb2 100644
--- a/resources/views/partials/bootstrap-table.blade.php
+++ b/resources/views/partials/bootstrap-table.blade.php
@@ -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();
}
});