|
|
@ -69,15 +69,16 @@ angular.module('openproject.uiComponents') |
|
|
|
|
|
|
|
|
|
|
|
element.on('click', function (event) { |
|
|
|
element.on('click', function (event) { |
|
|
|
|
|
|
|
|
|
|
|
var trigger = jQuery(this), |
|
|
|
var trigger = jQuery(this), |
|
|
|
dropdown = jQuery("#" + attributes.dropdownId); |
|
|
|
dropdown = jQuery("#" + attributes.dropdownId), |
|
|
|
|
|
|
|
showDropdown = dropdown.is(':hidden'); |
|
|
|
|
|
|
|
|
|
|
|
event.preventDefault(); |
|
|
|
event.preventDefault(); |
|
|
|
event.stopPropagation(); |
|
|
|
event.stopPropagation(); |
|
|
|
|
|
|
|
|
|
|
|
scope.$emit('hideAllDropdowns'); |
|
|
|
scope.$emit('hideAllDropdowns'); |
|
|
|
|
|
|
|
if (showDropdown) dropdown.show(); |
|
|
|
|
|
|
|
|
|
|
|
dropdown.show(); |
|
|
|
|
|
|
|
position(dropdown, trigger); |
|
|
|
position(dropdown, trigger); |
|
|
|
}); |
|
|
|
}); |
|
|
|
} |
|
|
|
} |
|
|
|