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
diff options
context:
space:
mode:
authorFilipa Lacerda <filipa@gitlab.com>2017-10-19 10:45:52 +0300
committerPhil Hughes <me@iamphill.com>2017-10-19 10:45:52 +0300
commit6ffd34897d1b18144946397ac7aa62d9e973fcd6 (patch)
tree904f7ffdae6ac6265a77a3f4481e84d5bc297e35 /app/assets/javascripts/gl_form.js
parent00c15cc27c33dd387069fce5777beb29d01f55ac (diff)
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