瀏覽代碼

Fix lint errors.

Lauri Ojansivu 7 年之前
父節點
當前提交
aa2a15bf1b
共有 1 個文件被更改,包括 4 次插入4 次删除
  1. 4 4
      client/lib/inlinedform.js

+ 4 - 4
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();