Commit 23e63699 authored by Denys Mishunov's avatar Denys Mishunov

Merge branch 'remove-DOMContentLoaded-billing-Pages' into 'master'

Remove DOMContentLoaded Eventlistener

See merge request gitlab-org/gitlab!47669
parents b07b1d99 48cdba9c
import initSubscriptions from 'ee/billings';
import PersistentUserCallout from '~/persistent_user_callout';
document.addEventListener('DOMContentLoaded', () => {
PersistentUserCallout.factory(document.querySelector('.js-gold-trial-callout'));
initSubscriptions();
});
PersistentUserCallout.factory(document.querySelector('.js-gold-trial-callout'));
initSubscriptions();
......@@ -5,10 +5,8 @@ import ZenMode from '~/zen_mode';
import '~/notes/index';
import loadAwardsHandler from '~/awards_handler';
document.addEventListener('DOMContentLoaded', () => {
new ZenMode(); // eslint-disable-line no-new
initEpicApp();
new ShortcutsEpic(); // eslint-disable-line no-new
new EpicTabs(); // eslint-disable-line no-new
loadAwardsHandler();
});
new ZenMode(); // eslint-disable-line no-new
initEpicApp();
new ShortcutsEpic(); // eslint-disable-line no-new
new EpicTabs(); // eslint-disable-line no-new
loadAwardsHandler();
import { initIterationReport } from 'ee/iterations';
import { Namespace } from 'ee/iterations/constants';
document.addEventListener('DOMContentLoaded', () => {
initIterationReport({ namespaceType: Namespace.Group, initiallyEditing: true });
});
initIterationReport({ namespaceType: Namespace.Group, initiallyEditing: true });
import { initIterationsList } from 'ee/iterations';
import { Namespace } from 'ee/iterations/constants';
document.addEventListener('DOMContentLoaded', () => initIterationsList(Namespace.Group));
initIterationsList(Namespace.Group);
import { initIterationForm } from 'ee/iterations';
document.addEventListener('DOMContentLoaded', () => {
initIterationForm();
});
initIterationForm();
import { initIterationReport } from 'ee/iterations';
import { Namespace } from 'ee/iterations/constants';
document.addEventListener('DOMContentLoaded', () => {
initIterationReport({ namespaceType: Namespace.Group });
});
initIterationReport({ namespaceType: Namespace.Group });
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