mirror of
https://github.com/wekan/wekan.git
synced 2025-12-29 13:48:49 +01:00
Card Details Popup, edit of Checklist, Checklistitems and Description now works
- problem is that if a inlined-form is opened within a popup, the popup is closed first
This commit is contained in:
parent
0f69282eec
commit
5f58ede7e3
1 changed files with 17 additions and 13 deletions
|
|
@ -192,17 +192,21 @@ window.Popup = new (class {
|
|||
}
|
||||
})();
|
||||
|
||||
// We close a potential opened popup on any left click on the document, or go
|
||||
// one step back by pressing escape.
|
||||
const escapeActions = ['back', 'close'];
|
||||
escapeActions.forEach(actionName => {
|
||||
EscapeActions.register(
|
||||
`popup-${actionName}`,
|
||||
() => Popup[actionName](),
|
||||
() => Popup.isOpen(),
|
||||
{
|
||||
noClickEscapeOn: '.js-pop-over,.js-open-card-title-popup',
|
||||
enabledOnClick: actionName === 'close',
|
||||
},
|
||||
);
|
||||
Meteor.startup(() => {
|
||||
if (!Utils.isMiniScreen()) {
|
||||
// We close a potential opened popup on any left click on the document, or go
|
||||
// one step back by pressing escape.
|
||||
const escapeActions = ['back', 'close'];
|
||||
escapeActions.forEach(actionName => {
|
||||
EscapeActions.register(
|
||||
`popup-${actionName}`,
|
||||
() => Popup[actionName](),
|
||||
() => Popup.isOpen(),
|
||||
{
|
||||
noClickEscapeOn: '.js-pop-over,.js-open-card-title-popup',
|
||||
enabledOnClick: actionName === 'close',
|
||||
},
|
||||
);
|
||||
});
|
||||
}
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue