mirror of
https://github.com/wekan/wekan.git
synced 2025-04-22 04:57:07 -04: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',
|
||||
() => { currentlyOpenedForm.get().close(); },
|
||||
() => { return currentlyOpenedForm.get() !== null; }, {
|
||||
enabledOnClick: false
|
||||
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;
|
||||
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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue