mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-09-21 15:36:22 +08:00
changed logic to accomodate globally
This commit is contained in:
parent
4c4bec1b50
commit
9b7abe8de7
|
@ -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) => {
|
||||
|
|
Loading…
Reference in a new issue