1
0
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:
Daniel Molina 2016-04-12 18:08:47 +02:00
parent a8968e2e6e
commit ec71f358be

View File

@ -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');
});
}