summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Greiling <mike@pixelcog.com>2016-12-11 21:37:11 -0600
committerMike Greiling <mike@pixelcog.com>2016-12-27 14:09:08 -0600
commit2b6f6e7b655e9a5b5d58b41added3da48b1cc639 (patch)
treee1665ed92160baa58f0737895fa2c2a304be3cc0
parentde427dc58959775f104776b4316349a90190fd1d (diff)
downloadgitlab-ce-2b6f6e7b655e9a5b5d58b41added3da48b1cc639.tar.gz
rename renderMarkdown to fetchMarkdownPreview to be less misleading
-rw-r--r--app/assets/javascripts/preview_markdown.js4
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;
}