Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app/assets/javascripts/pages/projects/show/index.js')
-rw-r--r--app/assets/javascripts/pages/projects/show/index.js60
1 files changed, 30 insertions, 30 deletions
diff --git a/app/assets/javascripts/pages/projects/show/index.js b/app/assets/javascripts/pages/projects/show/index.js
index fd522b975a6..dd8141d34c7 100644
--- a/app/assets/javascripts/pages/projects/show/index.js
+++ b/app/assets/javascripts/pages/projects/show/index.js
@@ -11,34 +11,34 @@ import Star from '../../../star';
import notificationsDropdown from '../../../notifications_dropdown';
import { showLearnGitLabProjectPopover } from '~/onboarding_issues';
-document.addEventListener('DOMContentLoaded', () => {
- initReadMore();
- new Star(); // eslint-disable-line no-new
- notificationsDropdown();
- new ShortcutsNavigation(); // eslint-disable-line no-new
- new NotificationsForm(); // eslint-disable-line no-new
- // eslint-disable-next-line no-new
- new UserCallout({
- setCalloutPerProject: false,
- className: 'js-autodevops-banner',
- });
-
- // Project show page loads different overview content based on user preferences
- const treeSlider = document.getElementById('js-tree-list');
- if (treeSlider) {
- initBlob();
- initTree();
- }
-
- if (document.querySelector('.blob-viewer')) {
- new BlobViewer(); // eslint-disable-line no-new
- }
-
- if (document.querySelector('.project-show-activity')) {
- new Activities(); // eslint-disable-line no-new
- }
-
- leaveByUrl('project');
-
- showLearnGitLabProjectPopover();
+initReadMore();
+new Star(); // eslint-disable-line no-new
+
+new NotificationsForm(); // eslint-disable-line no-new
+// eslint-disable-next-line no-new
+new UserCallout({
+ setCalloutPerProject: false,
+ className: 'js-autodevops-banner',
});
+
+// Project show page loads different overview content based on user preferences
+const treeSlider = document.getElementById('js-tree-list');
+if (treeSlider) {
+ initBlob();
+ initTree();
+}
+
+if (document.querySelector('.blob-viewer')) {
+ new BlobViewer(); // eslint-disable-line no-new
+}
+
+if (document.querySelector('.project-show-activity')) {
+ new Activities(); // eslint-disable-line no-new
+}
+
+leaveByUrl('project');
+
+showLearnGitLabProjectPopover();
+
+notificationsDropdown();
+new ShortcutsNavigation(); // eslint-disable-line no-new