Commit 0a7ce52e authored by Phil Hughes's avatar Phil Hughes

Merge branch 'remove-DOMContentLoaded-productivity-analytics-Pages' into 'master'

Remove DOMContentLoaded Eventlisteners

See merge request gitlab-org/gitlab!47787
parents 1a976c73 19a63f7b
import initMergeRequestAnalyticsApp from 'ee/analytics/merge_request_analytics'; import initMergeRequestAnalyticsApp from 'ee/analytics/merge_request_analytics';
document.addEventListener('DOMContentLoaded', initMergeRequestAnalyticsApp); initMergeRequestAnalyticsApp();
import initProductivityAnalyticsApp from 'ee/analytics/productivity_analytics'; import initProductivityAnalyticsApp from 'ee/analytics/productivity_analytics';
document.addEventListener('DOMContentLoaded', () => { initProductivityAnalyticsApp();
initProductivityAnalyticsApp();
});
import initRepositoryAnalyticsApp from 'ee/analytics/repository_analytics'; import initRepositoryAnalyticsApp from 'ee/analytics/repository_analytics';
document.addEventListener('DOMContentLoaded', () => { initRepositoryAnalyticsApp();
initRepositoryAnalyticsApp();
});
...@@ -5,17 +5,15 @@ import issuableInitBulkUpdateSidebar from '~/issuable_init_bulk_update_sidebar'; ...@@ -5,17 +5,15 @@ import issuableInitBulkUpdateSidebar from '~/issuable_init_bulk_update_sidebar';
const EPIC_BULK_UPDATE_PREFIX = 'epic_'; const EPIC_BULK_UPDATE_PREFIX = 'epic_';
document.addEventListener('DOMContentLoaded', () => { initFilteredSearch({
initFilteredSearch({
page: 'epics', page: 'epics',
isGroup: true, isGroup: true,
isGroupDecendent: true, isGroupDecendent: true,
useDefaultState: true, useDefaultState: true,
filteredSearchTokenKeys: FilteredSearchTokenKeysEpics, filteredSearchTokenKeys: FilteredSearchTokenKeysEpics,
stateFiltersSelector: '.epics-state-filters', stateFiltersSelector: '.epics-state-filters',
}); });
initEpicCreateApp(true); initEpicCreateApp(true);
issuableInitBulkUpdateSidebar.init(EPIC_BULK_UPDATE_PREFIX); issuableInitBulkUpdateSidebar.init(EPIC_BULK_UPDATE_PREFIX);
});
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