mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-16 22:25:30 +08:00
13 lines
346 B
JavaScript
13 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');
|
||
|
});
|