mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-18 15:13:21 +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');
|
||
|
});
|