summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/gl_form.js
diff options
context:
space:
mode:
authorFilipa Lacerda <filipa@gitlab.com>2017-10-19 07:45:52 +0000
committerWinnie Hellmann <winnie@gitlab.com>2017-10-21 23:32:05 +0300
commit1bba97004eae8256403eb34f29fc45500b8e2809 (patch)
treed33e391eb5de93cb6456f00a8d2cd99f10234d67 /app/assets/javascripts/gl_form.js
parent0a7ca61872f616abeb347653cc6ff204986157ec (diff)
downloadgitlab-ce-1bba97004eae8256403eb34f29fc45500b8e2809.tar.gz
Remove dropzoneInput from global namespace
Diffstat (limited to 'app/assets/javascripts/gl_form.js')
-rw-r--r--app/assets/javascripts/gl_form.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/assets/javascripts/gl_form.js b/app/assets/javascripts/gl_form.js
index 48d0c12143a..48cd43d3348 100644
--- a/app/assets/javascripts/gl_form.js
+++ b/app/assets/javascripts/gl_form.js
@@ -1,7 +1,7 @@
-/* global DropzoneInput */
/* global autosize */
import GfmAutoComplete from './gfm_auto_complete';
+import dropzoneInput from './dropzone_input';
export default class GLForm {
constructor(form, enableGFM = false) {
@@ -41,7 +41,7 @@ export default class GLForm {
mergeRequests: this.enableGFM,
labels: this.enableGFM,
});
- new DropzoneInput(this.form); // eslint-disable-line no-new
+ dropzoneInput(this.form);
autosize(this.textarea);
}
// form and textarea event listeners