Commit a4255a00 authored by Kushal Pandya's avatar Kushal Pandya

Merge branch 'remove-DOMContentLoaded-group-milestone-Pages' into 'master'

Remove DOMContentLoaded Eventlisteners

See merge request gitlab-org/gitlab!47775
parents 4db52033 79318ba9
import initContributionAanalyticsCharts from 'ee/analytics/contribution_analytics/contribution_analytics_bundle';
import initGroupMemberContributions from 'ee/group_member_contributions';
document.addEventListener('DOMContentLoaded', () => {
const dataEl = document.getElementById('js-analytics-data');
if (dataEl) {
initContributionAanalyticsCharts(dataEl);
initGroupMemberContributions();
}
});
const dataEl = document.getElementById('js-analytics-data');
if (dataEl) {
initContributionAanalyticsCharts(dataEl);
initGroupMemberContributions();
}
import initLDAPGroupsSelect from 'ee/ldap_groups_select';
import initLDAPGroupLinks from 'ee/groups/ldap_group_links';
document.addEventListener('DOMContentLoaded', () => {
initLDAPGroupsSelect();
initLDAPGroupLinks();
});
initLDAPGroupsSelect();
initLDAPGroupLinks();
import { mount2faAuthentication } from '~/authentication/mount_2fa';
document.addEventListener('DOMContentLoaded', mount2faAuthentication);
mount2faAuthentication();
import UsernameValidator from '~/pages/sessions/new/username_validator';
import initConfirmDangerModal from '~/confirm_danger_modal';
document.addEventListener('DOMContentLoaded', () => {
new UsernameValidator(); // eslint-disable-line no-new
initConfirmDangerModal();
});
new UsernameValidator(); // eslint-disable-line no-new
initConfirmDangerModal();
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