Commit 8c1f287c authored by Mike Greiling's avatar Mike Greiling

remove preview markdown ajax trigger on textarea blur

parent aa1c3ab2
...@@ -90,13 +90,9 @@ ...@@ -90,13 +90,9 @@
$.fn.setupMarkdownPreview = function () { $.fn.setupMarkdownPreview = function () {
var $form = $(this); var $form = $(this);
$form.find('textarea.markdown-area') $form.find('textarea.markdown-area').on('input', function () {
.on('input', function () { markdownPreview.hideReferencedUsers($form);
markdownPreview.hideReferencedUsers($form); });
})
.on('blur', function () {
markdownPreview.showPreview($form);
});
}; };
$(document).on('markdown-preview:show', function (e, $form) { $(document).on('markdown-preview:show', function (e, $form) {
......
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