Fix Manage access in the experiment table view [SCI-7648] (#4752)

This commit is contained in:
ajugo 2023-01-05 12:00:33 +01:00 committed by GitHub
parent 32e9329bcc
commit f8d2edc2c8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -183,7 +183,7 @@ var ExperimnetTable = {
}, },
initAccessModal: function() { initAccessModal: function() {
$('#manageTaskAccess').on('click', () => { $('#manageTaskAccess').on('click', () => {
$(`.table-row[data-id="${this.selectedMyModules[0]}"] .open-access-modal`).click(); $(`.table-row[data-id="${this.selectedMyModules[0]}"] .open-access-modal`)[0].click();
}); });
}, },
initRenameModal: function() { initRenameModal: function() {
@ -258,7 +258,7 @@ var ExperimnetTable = {
}); });
}); });
}); });
$(this.table).on('click', '.dropdown-menu', (e) => { $(this.table).on('click', '.assign-users-dropdown .dropdown-menu', (e) => {
if (e.target.tagName === 'INPUT') return; if (e.target.tagName === 'INPUT') return;
e.preventDefault(); e.preventDefault();
e.stopPropagation(); e.stopPropagation();