summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/blob/viewer
diff options
context:
space:
mode:
authorIllya Klymov <xanf@xanf.me>2019-09-11 16:47:19 +0000
committerMike Greiling <mike@pixelcog.com>2019-09-11 16:47:19 +0000
commit2d94e2c913417c2d1cce1bcc9c0ab4ede97a0d25 (patch)
tree79f41c5405e7b9f7496cf2161a9bf124ab1f2003 /app/assets/javascripts/blob/viewer
parentc256adb74e9933ca7e05febadc198b7ac6f96bed (diff)
downloadgitlab-ce-2d94e2c913417c2d1cce1bcc9c0ab4ede97a0d25.tar.gz
Add missing `render_gfm` import to files
Diffstat (limited to 'app/assets/javascripts/blob/viewer')
-rw-r--r--app/assets/javascripts/blob/viewer/index.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/app/assets/javascripts/blob/viewer/index.js b/app/assets/javascripts/blob/viewer/index.js
index d246a1f6064..9ea455069f3 100644
--- a/app/assets/javascripts/blob/viewer/index.js
+++ b/app/assets/javascripts/blob/viewer/index.js
@@ -1,4 +1,5 @@
import $ from 'jquery';
+import '~/behaviors/markdown/render_gfm';
import Flash from '../../flash';
import { handleLocationHash } from '../../lib/utils/common_utils';
import axios from '../../lib/utils/axios_utils';
@@ -105,7 +106,6 @@ export default class BlobViewer {
toggleCopyButtonState() {
if (!this.copySourceBtn) return;
-
if (this.simpleViewer.getAttribute('data-loaded')) {
this.copySourceBtn.setAttribute('title', __('Copy source to clipboard'));
this.copySourceBtn.classList.remove('disabled');
@@ -152,7 +152,6 @@ export default class BlobViewer {
this.activeViewer = newViewer;
this.toggleCopyButtonState();
-
BlobViewer.loadViewer(newViewer)
.then(viewer => {
$(viewer).renderGFM();