changed logic to accomodate globally

This commit is contained in:
Giga Chubinidze 2023-05-31 15:36:09 +04:00
parent 4c4bec1b50
commit 9b7abe8de7

View file

@ -109,7 +109,7 @@ DataTableCheckboxes.prototype.clearSelection = function() {
DataTableCheckboxes.prototype.initCheckboxes = function() {
this.tableWrapper.on('click', '.table tbody tr', (e) => {
var checkbox = $(e.currentTarget).find(this.config.checkboxSelector);
if (checkbox.attr('disabled') || $(e.target).is('a') || $(e.target).text() == 'No inventories here') return;
if (checkbox.attr('disabled') || $(e.target).is('a') || $(e.target).attr('class') === 'dataTables_empty') return;
checkbox.prop('checked', !checkbox.prop('checked'));
this.selectRow(e.currentTarget);
}).on('click', this.config.checkboxSelector, (e) => {