mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-18 15:13:21 +08:00
5eacd41ca5
* well plate implementation without nested dropdown * Implement dropdown submenu [SCI-7931] * minor code cleanup --------- Co-authored-by: Giga Chubinidze <gchubinidze@unisens.ge> Co-authored-by: Martin Artnik <martin@scinote.net>
12 lines
346 B
JavaScript
12 lines
346 B
JavaScript
$(document).on('click', '.dropdown-submenu-item', function(e) {
|
|
e.preventDefault();
|
|
e.stopPropagation();
|
|
$(this).toggleClass('active');
|
|
});
|
|
|
|
$(document).on('click', '.dropdown-submenu', function(e) {
|
|
e.preventDefault();
|
|
e.stopPropagation();
|
|
$('.dropdown-submenu-item').removeClass('active');
|
|
$('.dropdown').removeClass('open');
|
|
});
|