summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/pages/snippets
diff options
context:
space:
mode:
Diffstat (limited to 'app/assets/javascripts/pages/snippets')
-rw-r--r--app/assets/javascripts/pages/snippets/edit/index.js8
-rw-r--r--app/assets/javascripts/pages/snippets/new/index.js8
2 files changed, 2 insertions, 14 deletions
diff --git a/app/assets/javascripts/pages/snippets/edit/index.js b/app/assets/javascripts/pages/snippets/edit/index.js
index d86e1632ae5..0a63f5c7172 100644
--- a/app/assets/javascripts/pages/snippets/edit/index.js
+++ b/app/assets/javascripts/pages/snippets/edit/index.js
@@ -1,7 +1 @@
-import initSnippet from '~/snippet/snippet_bundle';
-import form from '../form';
-
-document.addEventListener('DOMContentLoaded', () => {
- initSnippet();
- form();
-});
+import '~/snippet/snippet_edit';
diff --git a/app/assets/javascripts/pages/snippets/new/index.js b/app/assets/javascripts/pages/snippets/new/index.js
index d86e1632ae5..0a63f5c7172 100644
--- a/app/assets/javascripts/pages/snippets/new/index.js
+++ b/app/assets/javascripts/pages/snippets/new/index.js
@@ -1,7 +1 @@
-import initSnippet from '~/snippet/snippet_bundle';
-import form from '../form';
-
-document.addEventListener('DOMContentLoaded', () => {
- initSnippet();
- form();
-});
+import '~/snippet/snippet_edit';