diff options
author | Kamil TrzciĆski <ayufan@ayufan.eu> | 2018-04-06 11:57:33 +0300 |
---|---|---|
committer | Mayra Cabrera <mcabrera@gitlab.com> | 2018-04-07 05:20:17 +0300 |
commit | ca35c65b026e57307a13f25ebc11f11c978ed697 (patch) | |
tree | f54a9b5337ed9fa37d117cb6490fbb4f05718763 /app/assets/javascripts/pages/projects/settings/repository/show | |
parent | c4f56a88029c1fe73bf6efb062b5f77a65282fed (diff) |
Fix form javascript
Diffstat (limited to 'app/assets/javascripts/pages/projects/settings/repository/show')
-rw-r--r-- | app/assets/javascripts/pages/projects/settings/repository/show/index.js | 20 |
1 files changed, 2 insertions, 18 deletions
diff --git a/app/assets/javascripts/pages/projects/settings/repository/show/index.js b/app/assets/javascripts/pages/projects/settings/repository/show/index.js index 5bcdfc26a4b..ffc84dc106b 100644 --- a/app/assets/javascripts/pages/projects/settings/repository/show/index.js +++ b/app/assets/javascripts/pages/projects/settings/repository/show/index.js @@ -1,19 +1,3 @@ -/* eslint-disable no-new */ +import initForm from '../form'; -import ProtectedTagCreate from '~/protected_tags/protected_tag_create'; -import ProtectedTagEditList from '~/protected_tags/protected_tag_edit_list'; -import initSettingsPanels from '~/settings_panels'; -import initDeployKeys from '~/deploy_keys'; -import ProtectedBranchCreate from '~/protected_branches/protected_branch_create'; -import ProtectedBranchEditList from '~/protected_branches/protected_branch_edit_list'; -import DueDateSelectors from '~/due_date_select'; - -document.addEventListener('DOMContentLoaded', () => { - new ProtectedTagCreate(); - new ProtectedTagEditList(); - initDeployKeys(); - initSettingsPanels(); - new ProtectedBranchCreate(); // eslint-disable-line no-new - new ProtectedBranchEditList(); // eslint-disable-line no-new - new DueDateSelectors(); -}); +document.addEventListener('DOMContentLoaded', initForm); |