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:
Martin Filser 2021-10-18 13:06:57 +02:00
parent 0f69282eec
commit 5f58ede7e3

View file

@ -192,17 +192,21 @@ window.Popup = new (class {
} }
})(); })();
// We close a potential opened popup on any left click on the document, or go Meteor.startup(() => {
// one step back by pressing escape. if (!Utils.isMiniScreen()) {
const escapeActions = ['back', 'close']; // We close a potential opened popup on any left click on the document, or go
escapeActions.forEach(actionName => { // one step back by pressing escape.
EscapeActions.register( const escapeActions = ['back', 'close'];
`popup-${actionName}`, escapeActions.forEach(actionName => {
() => Popup[actionName](), EscapeActions.register(
() => Popup.isOpen(), `popup-${actionName}`,
{ () => Popup[actionName](),
noClickEscapeOn: '.js-pop-over,.js-open-card-title-popup', () => Popup.isOpen(),
enabledOnClick: actionName === 'close', {
}, noClickEscapeOn: '.js-pop-over,.js-open-card-title-popup',
); enabledOnClick: actionName === 'close',
},
);
});
}
}); });