committed by
Julius Härtl
parent
066f67ef7b
commit
03fc1fd0f2
@@ -28,7 +28,12 @@ app.directive('appPopoverMenuUtils', function () {
|
|||||||
var menu = elm.find('.popovermenu');
|
var menu = elm.find('.popovermenu');
|
||||||
var button = elm.find('button');
|
var button = elm.find('button');
|
||||||
button.click(function (e) {
|
button.click(function (e) {
|
||||||
menu.toggleClass('hidden');
|
var popovermenus = $('.popovermenu');
|
||||||
|
var shouldShow = menu.hasClass('hidden');
|
||||||
|
popovermenus.addClass('hidden');
|
||||||
|
if (shouldShow) {
|
||||||
|
menu.toggleClass('hidden');
|
||||||
|
}
|
||||||
e.stopPropagation();
|
e.stopPropagation();
|
||||||
});
|
});
|
||||||
scope.$on('documentClicked', function (scope, event) {
|
scope.$on('documentClicked', function (scope, event) {
|
||||||
|
|||||||
Reference in New Issue
Block a user