зеркало из https://github.com/nextcloud/deck.git
Fix appPopoverMenus
This commit is contained in:
Родитель
97df712b11
Коммит
9ff3a19a9b
|
@ -27,15 +27,17 @@ app.directive('appPopoverMenuUtils', function () {
|
|||
link: function (scope, elm) {
|
||||
var menu = elm.find('.popovermenu');
|
||||
var button = elm.find('button');
|
||||
button.click(function () {
|
||||
button.click(function (e) {
|
||||
menu.toggleClass('hidden');
|
||||
if(!menu.hasClass('hidden')) {
|
||||
button.css('display','block');
|
||||
} else {
|
||||
button.css('display','');
|
||||
}
|
||||
});
|
||||
e.stopPropagation();
|
||||
});
|
||||
scope.$on('documentClicked', function (scope, event) {
|
||||
e.stopPropagation();
|
||||
if (event.target !== button) {
|
||||
menu.addClass('hidden');
|
||||
}
|
||||
|
|
|
@ -655,15 +655,17 @@ app.directive('appPopoverMenuUtils', function () {
|
|||
link: function (scope, elm) {
|
||||
var menu = elm.find('.popovermenu');
|
||||
var button = elm.find('button');
|
||||
button.click(function () {
|
||||
button.click(function (e) {
|
||||
menu.toggleClass('hidden');
|
||||
if(!menu.hasClass('hidden')) {
|
||||
button.css('display','block');
|
||||
} else {
|
||||
button.css('display','');
|
||||
}
|
||||
});
|
||||
e.stopPropagation();
|
||||
});
|
||||
scope.$on('documentClicked', function (scope, event) {
|
||||
e.stopPropagation();
|
||||
if (event.target !== button) {
|
||||
menu.addClass('hidden');
|
||||
}
|
||||
|
|
|
@ -59,9 +59,7 @@
|
|||
|
||||
</div>
|
||||
<div class="app-popover-menu-utils">
|
||||
<button class="card-options icon-more"
|
||||
ng-click="c.status.showMenu=!c.status.showMenu; $event.stopPropagation();"
|
||||
ng-model="card" ng-if="boardservice.canEdit()"></button>
|
||||
<button class="card-options icon-more" ng-model="card"></button>
|
||||
<div class="popovermenu bubble hidden">
|
||||
<ul>
|
||||
<li ng-if="filter!=='archive'">
|
||||
|
|
Загрузка…
Ссылка в новой задаче