Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorDouwe Maan <douwe@selenight.nl>2019-02-11 05:41:06 +0300
committerDouwe Maan <douwe@selenight.nl>2019-05-05 23:20:55 +0300
commit140d40d25d6c871e6b3f0cca795224a65637f019 (patch)
treec821ac20f777c632b6e9ad0fb3e8a084f04efcfa /app
parent26526794b20d9b0c186519ced796961ceb100560 (diff)
Remove GLForm from MarkdownField
Diffstat (limited to 'app')
-rw-r--r--app/assets/javascripts/vue_shared/components/markdown/field.vue20
1 files changed, 0 insertions, 20 deletions
diff --git a/app/assets/javascripts/vue_shared/components/markdown/field.vue b/app/assets/javascripts/vue_shared/components/markdown/field.vue
index 31a658206c1..a05947a1813 100644
--- a/app/assets/javascripts/vue_shared/components/markdown/field.vue
+++ b/app/assets/javascripts/vue_shared/components/markdown/field.vue
@@ -6,7 +6,6 @@ import Autosize from 'autosize';
import { __ } from '~/locale';
import { stripHtml } from '~/lib/utils/text_utility';
import Flash from '../../../flash';
-import GLForm from '../../../gl_form';
import markdownHeader from './header.vue';
import markdownToolbar from './toolbar.vue';
import icon from '../icon.vue';
@@ -213,20 +212,6 @@ export default {
},
},
mounted() {
- /*
- GLForm class handles all the toolbar buttons
- */
- return new GLForm($(this.$refs['gl-form']), {
- emojis: this.enableAutocomplete,
- members: this.enableAutocomplete,
- issues: this.enableAutocomplete,
- mergeRequests: this.enableAutocomplete,
- epics: this.enableAutocomplete,
- milestones: this.enableAutocomplete,
- labels: this.enableAutocomplete,
- snippets: this.enableAutocomplete,
- });
-
if (this.autosaveKey.length) {
const draft = getDraft(this.autosaveKey);
@@ -245,11 +230,6 @@ export default {
this.autosizeTextarea();
},
beforeDestroy() {
- const glForm = $(this.$refs['gl-form']).data('glForm');
- if (glForm) {
- glForm.destroy();
- }
-
if (this.autocomplete) {
this.autocomplete.destroy();
}