Commit 7532aeab authored by Lukas Eipert's avatar Lukas Eipert

Fix initialization of a few scripts

parent 94b9d60a
import AdminEmailSelect from './admin_email_select'; import AdminEmailSelect from './admin_email_select';
document.addEventListener('DOMContentLoaded', () => new AdminEmailSelect()); document.addEventListener('DOMContentLoaded', () => {
AdminEmailSelect();
});
import $ from 'jquery'; import $ from 'jquery';
import DependencyProxy from 'ee/dependency_proxy'; import initDependencyProxy from 'ee/dependency_proxy';
document.addEventListener('DOMContentLoaded', () => new DependencyProxy()); document.addEventListener('DOMContentLoaded', () => {
initDependencyProxy();
});
document.addEventListener('DOMContentLoaded', () => { document.addEventListener('DOMContentLoaded', () => {
const form = document.querySelector('form.edit_dependency_proxy_group_setting'); const form = document.querySelector('form.edit_dependency_proxy_group_setting');
......
import EpicsSelect from 'ee/vue_shared/components/sidebar/epics_select/epics_select_bundle'; import initEpicsSelect from 'ee/vue_shared/components/sidebar/epics_select/epics_select_bundle';
import WeightSelect from 'ee/weight_select'; import WeightSelect from 'ee/weight_select';
import initForm from '~/pages/projects/issues/form'; import initForm from '~/pages/projects/issues/form';
export default () => { export default () => {
// eslint-disable-next-line no-new initEpicsSelect();
new EpicsSelect();
// eslint-disable-next-line no-new // eslint-disable-next-line no-new
new WeightSelect(); new WeightSelect();
initForm(); initForm();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment