Commit 72d54281 authored by Jannik Lehmann's avatar Jannik Lehmann

Remove obsolete DOMContentLoadedEventListener

parent 5e2365f5
...@@ -12,25 +12,23 @@ import initSearchSettings from '~/search_settings'; ...@@ -12,25 +12,23 @@ import initSearchSettings from '~/search_settings';
import initProjectPermissionsSettings from '../shared/permissions'; import initProjectPermissionsSettings from '../shared/permissions';
import initProjectLoadingSpinner from '../shared/save_project_loader'; import initProjectLoadingSpinner from '../shared/save_project_loader';
document.addEventListener('DOMContentLoaded', () => { initFilePickers();
initFilePickers(); initConfirmDangerModal();
initConfirmDangerModal(); initSettingsPanels();
initSettingsPanels(); initProjectDeleteButton();
initProjectDeleteButton(); mountBadgeSettings(PROJECT_BADGE);
mountBadgeSettings(PROJECT_BADGE);
new UserCallout({ className: 'js-service-desk-callout' }); // eslint-disable-line no-new new UserCallout({ className: 'js-service-desk-callout' }); // eslint-disable-line no-new
initServiceDesk(); initServiceDesk();
initProjectLoadingSpinner(); initProjectLoadingSpinner();
initProjectPermissionsSettings(); initProjectPermissionsSettings();
setupTransferEdit('.js-project-transfer-form', 'select.select2'); setupTransferEdit('.js-project-transfer-form', 'select.select2');
dirtySubmitFactory( dirtySubmitFactory(
document.querySelectorAll( document.querySelectorAll(
'.js-general-settings-form, .js-mr-settings-form, .js-mr-approvals-form', '.js-general-settings-form, .js-mr-settings-form, .js-mr-approvals-form',
), ),
); );
initSearchSettings(); initSearchSettings();
});
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