diff options
author | Illya Klymov <xanf@xanf.me> | 2019-09-11 16:47:19 +0000 |
---|---|---|
committer | Mike Greiling <mike@pixelcog.com> | 2019-09-11 16:47:19 +0000 |
commit | 2d94e2c913417c2d1cce1bcc9c0ab4ede97a0d25 (patch) | |
tree | 79f41c5405e7b9f7496cf2161a9bf124ab1f2003 /app/assets/javascripts/blob/viewer | |
parent | c256adb74e9933ca7e05febadc198b7ac6f96bed (diff) | |
download | gitlab-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.js | 3 |
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(); |