Commit 2b6f6e7b authored by Mike Greiling's avatar Mike Greiling

rename renderMarkdown to fetchMarkdownPreview to be less misleading

parent de427dc5
...@@ -25,7 +25,7 @@ ...@@ -25,7 +25,7 @@
this.hideReferencedUsers($form); this.hideReferencedUsers($form);
} else { } else {
preview.text('Loading...'); preview.text('Loading...');
this.renderMarkdown(mdText, (function(response) { this.fetchMarkdownPreview(mdText, (function(response) {
preview.html(response.body); preview.html(response.body);
preview.renderGFM(); preview.renderGFM();
this.renderReferencedUsers(response.references.users, $form); this.renderReferencedUsers(response.references.users, $form);
...@@ -33,7 +33,7 @@ ...@@ -33,7 +33,7 @@
} }
}; };
MarkdownPreview.prototype.renderMarkdown = function(text, success) { MarkdownPreview.prototype.fetchMarkdownPreview = function(text, success) {
if (!window.preview_markdown_path) { if (!window.preview_markdown_path) {
return; return;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment