diff options
author | Mike Greiling <mike@pixelcog.com> | 2016-12-12 06:57:36 +0300 |
---|---|---|
committer | Mike Greiling <mike@pixelcog.com> | 2016-12-27 23:12:15 +0300 |
commit | aa1c3ab227c0a2dd7d0a3d777f4516f6d619d788 (patch) | |
tree | c3efcc6d5471eed48bb7c9b962298cba05a4e671 /app/assets/javascripts/preview_markdown.js | |
parent | 75ef84df95a9cae0c164994f88ceb53c833fee10 (diff) |
fix some more eslint rules
Diffstat (limited to 'app/assets/javascripts/preview_markdown.js')
-rw-r--r-- | app/assets/javascripts/preview_markdown.js | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/app/assets/javascripts/preview_markdown.js b/app/assets/javascripts/preview_markdown.js index efe2351652f..d22b67724b2 100644 --- a/app/assets/javascripts/preview_markdown.js +++ b/app/assets/javascripts/preview_markdown.js @@ -1,4 +1,4 @@ -/* eslint-disable func-names, no-var, one-var, one-var-declaration-per-line, object-shorthand, comma-dangle, prefer-arrow-callback, max-len */ +/* eslint-disable func-names, no-var, object-shorthand, comma-dangle, prefer-arrow-callback */ // MarkdownPreview // @@ -6,7 +6,10 @@ // and showing a warning when more than `x` users are referenced. // (function () { - var lastTextareaPreviewed, markdownPreview, previewButtonSelector, writeButtonSelector; + var lastTextareaPreviewed; + var markdownPreview; + var previewButtonSelector; + var writeButtonSelector; window.MarkdownPreview = (function () { function MarkdownPreview() {} @@ -17,9 +20,8 @@ MarkdownPreview.prototype.ajaxCache = {}; MarkdownPreview.prototype.showPreview = function ($form) { - var mdText, preview; - preview = $form.find('.js-md-preview'); - mdText = $form.find('textarea.markdown-area').val(); + var preview = $form.find('.js-md-preview'); + var mdText = $form.find('textarea.markdown-area').val(); if (mdText.trim().length === 0) { preview.text('Nothing to preview.'); this.hideReferencedUsers($form); @@ -151,4 +153,4 @@ $form = $(this).closest('form'); $(document).triggerHandler('markdown-preview:hide', [$form]); }); -}).call(this); +}()); |