diff options
author | Mike Greiling <mike@pixelcog.com> | 2016-12-12 06:37:11 +0300 |
---|---|---|
committer | Mike Greiling <mike@pixelcog.com> | 2016-12-27 23:09:08 +0300 |
commit | 2b6f6e7b655e9a5b5d58b41added3da48b1cc639 (patch) | |
tree | e1665ed92160baa58f0737895fa2c2a304be3cc0 /app/assets/javascripts/preview_markdown.js | |
parent | de427dc58959775f104776b4316349a90190fd1d (diff) |
rename renderMarkdown to fetchMarkdownPreview to be less misleading
Diffstat (limited to 'app/assets/javascripts/preview_markdown.js')
-rw-r--r-- | app/assets/javascripts/preview_markdown.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/assets/javascripts/preview_markdown.js b/app/assets/javascripts/preview_markdown.js index 6d9e40d4e91..bbdb1c10f33 100644 --- a/app/assets/javascripts/preview_markdown.js +++ b/app/assets/javascripts/preview_markdown.js @@ -25,7 +25,7 @@ this.hideReferencedUsers($form); } else { preview.text('Loading...'); - this.renderMarkdown(mdText, (function(response) { + this.fetchMarkdownPreview(mdText, (function(response) { preview.html(response.body); preview.renderGFM(); this.renderReferencedUsers(response.references.users, $form); @@ -33,7 +33,7 @@ } }; - MarkdownPreview.prototype.renderMarkdown = function(text, success) { + MarkdownPreview.prototype.fetchMarkdownPreview = function(text, success) { if (!window.preview_markdown_path) { return; } |