mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-01-10 01:19:45 +08:00
Refactor using delegated event [SCI-7745]
This commit is contained in:
parent
3e60885d05
commit
658862fca7
1 changed files with 6 additions and 6 deletions
|
@ -230,12 +230,12 @@ var ExperimnetTable = {
|
|||
return true;
|
||||
};
|
||||
|
||||
$('#modal-edit-module').on('click', 'button[data-action="confirm"]', handleRenameModal);
|
||||
|
||||
$('#modal-edit-module').find('form').submit((e) => {
|
||||
e.preventDefault();
|
||||
handleRenameModal();
|
||||
});
|
||||
$('#modal-edit-module')
|
||||
.on('click', 'button[data-action="confirm"]', handleRenameModal)
|
||||
.on('submit', 'form', (e) => {
|
||||
e.preventDefault();
|
||||
handleRenameModal();
|
||||
});
|
||||
},
|
||||
initManageUsersDropdown: function() {
|
||||
$(this.table).on('show.bs.dropdown', '.assign-users-dropdown', (e) => {
|
||||
|
|
Loading…
Reference in a new issue