mirror of
https://github.com/wekan/wekan.git
synced 2025-12-17 16:00:13 +01:00
Fix lint errors.
This commit is contained in:
parent
f629a7b3f7
commit
aa2a15bf1b
1 changed files with 4 additions and 4 deletions
|
|
@ -75,14 +75,14 @@ InlinedForm = BlazeComponent.extendComponent({
|
||||||
EscapeActions.register('inlinedForm',
|
EscapeActions.register('inlinedForm',
|
||||||
() => { currentlyOpenedForm.get().close(); },
|
() => { currentlyOpenedForm.get().close(); },
|
||||||
() => { return currentlyOpenedForm.get() !== null; }, {
|
() => { return currentlyOpenedForm.get() !== null; }, {
|
||||||
enabledOnClick: false
|
enabledOnClick: false,
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
// submit on click outside
|
// submit on click outside
|
||||||
document.addEventListener("click", function(evt) {
|
document.addEventListener('click', function(evt) {
|
||||||
const openedForm = currentlyOpenedForm.get()
|
const openedForm = currentlyOpenedForm.get();
|
||||||
const isClickOutside = $(evt.target).closest(".js-inlined-form").length === 0;
|
const isClickOutside = $(evt.target).closest('.js-inlined-form').length === 0;
|
||||||
if (openedForm && isClickOutside) {
|
if (openedForm && isClickOutside) {
|
||||||
$('.js-inlined-form button[type=submit]').click();
|
$('.js-inlined-form button[type=submit]').click();
|
||||||
openedForm.close();
|
openedForm.close();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue