From aa2a15bf1b1c7cc95bc6cb93a25c0932db402573 Mon Sep 17 00:00:00 2001 From: Lauri Ojansivu Date: Tue, 26 Jun 2018 01:36:44 +0300 Subject: Fix lint errors. --- client/lib/inlinedform.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'client/lib') 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(); -- cgit v1.2.3-1-g7c22