Maxime Quandalle преди 9 години
родител
ревизия
0833a22742
променени са 2 файла, в които са добавени 2 реда и са изтрити 1 реда
  1. 1 0
      .eslintrc
  2. 1 1
      client/components/cards/attachments.js

+ 1 - 0
.eslintrc

@@ -28,6 +28,7 @@ rules:
   no-multiple-empty-lines: 2
   no-multiple-empty-lines: 2
   no-nested-ternary: 2
   no-nested-ternary: 2
   no-spaced-func: 2
   no-spaced-func: 2
+  no-trailing-spaces: 2
   operator-linebreak: 2
   operator-linebreak: 2
   quotes: [2, single]
   quotes: [2, single]
   semi-spacing: 2
   semi-spacing: 2

+ 1 - 1
client/components/cards/attachments.js

@@ -22,7 +22,7 @@ Template.attachmentsGalery.events({
   },
   },
   'click .js-preview-image'(evt) {
   'click .js-preview-image'(evt) {
     Popup.open('previewAttachedImage').call(this, evt);
     Popup.open('previewAttachedImage').call(this, evt);
-    // when multiple thumbnails, if click one then another very fast, 
+    // when multiple thumbnails, if click one then another very fast,
     // we might get a wrong width from previous img.
     // we might get a wrong width from previous img.
     // when popup reused, onRendered() won't be called, so we cannot get there.
     // when popup reused, onRendered() won't be called, so we cannot get there.
     // here make sure to get correct size when this img fully loaded.
     // here make sure to get correct size when this img fully loaded.