mirror of
https://github.com/wekan/wekan.git
synced 2025-04-22 04:57:07 -04:00
Merge branch 'pravdomil-patch-6' into devel
This commit is contained in:
commit
c372ea02f7
2 changed files with 14 additions and 2 deletions
|
@ -8,7 +8,9 @@ This release adds the following new features:
|
|||
and fixes the following bugs:
|
||||
|
||||
* [Fix typo in English translation](https://github.com/wekan/wekan/pull/1710);
|
||||
* [Fix vertical align of user avatar initials](https://github.com/wekan/wekan/pull/1714).
|
||||
* [Fix vertical align of user avatar initials](https://github.com/wekan/wekan/pull/1714);
|
||||
* [Submit inline form on click outside]https://github.com/wekan/wekan/pull/1717), fixes
|
||||
["You have an unsaved description" doesn't go away after saving](https://github.com/wekan/wekan/issues/1287).
|
||||
|
||||
Thanks to GitHub users pravdomil, xet7 and zypA13510 for their contributions.
|
||||
|
||||
|
|
|
@ -75,6 +75,16 @@ InlinedForm = BlazeComponent.extendComponent({
|
|||
EscapeActions.register('inlinedForm',
|
||||
() => { currentlyOpenedForm.get().close(); },
|
||||
() => { return currentlyOpenedForm.get() !== null; }, {
|
||||
noClickEscapeOn: '.js-inlined-form',
|
||||
enabledOnClick: false,
|
||||
}
|
||||
);
|
||||
|
||||
// submit on click outside
|
||||
document.addEventListener('click', function(evt) {
|
||||
const openedForm = currentlyOpenedForm.get();
|
||||
const isClickOutside = $(evt.target).closest('.js-inlined-form').length === 0;
|
||||
if (openedForm && isClickOutside) {
|
||||
$('.js-inlined-form button[type=submit]').click();
|
||||
openedForm.close();
|
||||
}
|
||||
}, true);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue