mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-30 22:50:10 +03:00
Feature #4363: Close dropdown on click
This commit is contained in:
parent
a8968e2e6e
commit
ec71f358be
@ -73,9 +73,8 @@ define(function(require) {
|
||||
});
|
||||
|
||||
function _setupCloseDropdownsOnClick() {
|
||||
$(document).on("click", '[data-dropdown-content] a', function() {
|
||||
var id = $(this).closest('ul').attr('id');
|
||||
$('[data-dropdown=' + id + ']').trigger('click');
|
||||
$(document).on("click", '.is-dropdown-submenu-item > a', function() {
|
||||
$('.is-active > a', $(this).closest('.dropdown')).trigger('click');
|
||||
});
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user