Open Inventory - Double action fix [SCI-7506] (#5200)

Co-authored-by: Giga Chubinidze <gchubinidze@unisens.ge>
This commit is contained in:
G-Chubinidze 2023-04-25 16:21:41 +04:00 committed by GitHub
parent 540de67956
commit e9cacc3db1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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')) return;
if (checkbox.attr('disabled') || $(e.target).is('a')) return;
checkbox.prop('checked', !checkbox.prop('checked'));
this.selectRow(e.currentTarget);
}).on('click', this.config.checkboxSelector, (e) => {