diff options
author | Lauri Ojansivu <x@xet7.org> | 2018-06-26 01:36:44 +0300 |
---|---|---|
committer | Lauri Ojansivu <x@xet7.org> | 2018-06-26 01:36:44 +0300 |
commit | aa2a15bf1b1c7cc95bc6cb93a25c0932db402573 (patch) | |
tree | b0464e016a405d85feb29ed3e816391ab44d8211 /client/lib | |
parent | f629a7b3f7e614240fa6e703507a43540467ebbc (diff) | |
download | wekan-aa2a15bf1b1c7cc95bc6cb93a25c0932db402573.tar.gz wekan-aa2a15bf1b1c7cc95bc6cb93a25c0932db402573.tar.bz2 wekan-aa2a15bf1b1c7cc95bc6cb93a25c0932db402573.zip |
Fix lint errors.
Diffstat (limited to 'client/lib')
-rw-r--r-- | client/lib/inlinedform.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/client/lib/inlinedform.js b/client/lib/inlinedform.js index 272d79f7..e5e4d4ed 100644 --- a/client/lib/inlinedform.js +++ b/client/lib/inlinedform.js @@ -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(); |