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